Skip to content

Mailgun fails for hosting in EU regions #222

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

Closed
dwf981 opened this issue Dec 19, 2020 · 1 comment
Closed

Mailgun fails for hosting in EU regions #222

dwf981 opened this issue Dec 19, 2020 · 1 comment

Comments

@dwf981
Copy link

dwf981 commented Dec 19, 2020

Mailgun will fail when the app is hosted on a european server (no explicit error) due to Mailgun configuration.

To reproduce:

  • install/run the app from an EU location/server
  • try to trigger email sending (ie: register)
  • vague error in console

PS: my solution for hosting the app in the EU region:
Edit sendEmail.js like this:

  const auth = {
    auth: {
      // eslint-disable-next-line camelcase
      api_key: process.env.EMAIL_SMTP_API_MAILGUN,
      domain: process.env.EMAIL_SMTP_DOMAIN_MAILGUN
    },
    host: 'api.eu.mailgun.net'
  }

Related issue:
mailgun/mailgun-php#471

@davellanedam
Copy link
Owner

Thanks! Fixed in v 9.0.3

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