From 360b867c03da6f70669e6bba0c3070fdd9f10885 Mon Sep 17 00:00:00 2001 From: David Garcia Date: Fri, 1 Dec 2023 09:31:00 +0100 Subject: [PATCH] fix(docs): Add url param for EU infrastructure --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d74edbf..8b760c1 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ Next, require the module and instantiate a mailgun client by calling `new Mailgu NOTE: starting from version 3.0 you need to pass FormData (we need this to keep library universal). For node.js you can use `form-data` library. +IMPORTANT: if you are using EU infrastructure, you need to also pass `url: 'https://api.eu.mailgun.net'` together with auth credentials as stated in [Mailgun docs](https://documentation.mailgun.com/en/latest/quickstart-sending.html#send-via-api) + ### Imports Once the package is installed, you can import the library using `import` or `require` approach: