Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get message from EU server? #902

Closed
stephanvierkant opened this issue Apr 26, 2024 · 1 comment
Closed

Get message from EU server? #902

stephanvierkant opened this issue Apr 26, 2024 · 1 comment

Comments

@stephanvierkant
Copy link

I used to get messages like this:

/** \Mailgun\Model\Event\Event $event **/
$mailgun = \Mailgun\Mailgun::create('key-foobar');

foreach ($mailgun->events()->get($domain)->getItems() as $event) {
$url = $event->getStorage()['url'];
$message = $this->mailgun->messages()->show($url);
}

But I switched to a EU server:

$endpoint =  'https://api.eu.mailgun.net';
$mailgun = \Mailgun\Mailgun::create('key-foobar', $endpoint);

Now I get another url ("https://storage-europe-west1.api.mailgun.net/v3/domains/....") but it says "Message not found".

Is this a bug, or am I doing something wrong?

@oleksandr-mykhailenko
Copy link
Collaborator

Hello, so it could be a case when messages related to the region

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants