typesafe / mnailgun

A simple .Net wrapper library for the Mailgun API that allows you to send messages, create web hooks, manage mailboxes, etc. with minimal effort.
Other
35 stars 25 forks source link

Mailgun uses different URL for EU customers. #41

Open kristoffer-tvera opened 5 years ago

kristoffer-tvera commented 5 years ago

Would this package work for european customers of Mailgun?

We have to use a different URL, and at a glance, it looks like you've hardcoded in the URL in this package.

https://github.com/typesafe/mnailgun/blob/d44f73c051720d6c3841c3d736623ab2cc72602a/src/Typesafe.Mailgun/MailgunClient.cs#L19

Read more: https://documentation.mailgun.com/en/latest/api-intro.html#base-url

dantheother commented 5 years ago

If you can work with the source directly, there's an open PR to address this - https://github.com/typesafe/mnailgun/pull/35

Looks like the nuget package as it stands wouldn't be good for EU customers though :(