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

Open
stephanvierkant opened this issue Apr 26, 2024 · 0 comments
Open

Get message from EU server? #902

stephanvierkant opened this issue Apr 26, 2024 · 0 comments

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?

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

1 participant