# External Email Provider - Mandrill (Invalid API Key)

**URL:** <https://community.auth0.com/t/external-email-provider-mandrill-invalid-api-key/82420>\
**Category:** Get Help\
**Created:** [April 26, 2022, 2:56pm UTC](https://community.auth0.com/t/external-email-provider-mandrill-invalid-api-key/82420 "2022-04-26T14:56:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stoyan.kalinov.ext](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stoyan.kalinov.ext/32/35153_2.png) [@stoyan.kalinov.ext](https://community.auth0.com/u/stoyan.kalinov.ext)\
**Post date:** [April 26, 2022, 2:56pm UTC](https://community.auth0.com/t/external-email-provider-mandrill-invalid-api-key/82420/1 "2022-04-26T14:56:24Z")

</div>

So I followed up the documentation to setup external email provider with Mandrill

> **[Configure Mandrill as External SMTP Email Provider](https://auth0.com/docs/customize/email/smtp-email-providers/configure-mandrill-as-external-smtp-email-provider)**
>
> Describes how to configure Mandrill as an external SMTP email provider.

I have an account also an API key.

When I set the API key and click “Send Test Email” it says that the email is sent successfully.  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/0/3080bcf7c517b94675ed483ba775cd37d8172033.png)

When I open the logs there are two logs there:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/b/7b3fb3132de220c9cb423feefbafb239c3c337a1.png)

And the error log looks like that:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/4/540939bd216a6b1a698772e6ed4257f1362680c1.png)

I cannot understand why, for sure I am setting the correct API key which is from Mandrill.

Also one think I noticed when I am setting the API key is that:

I am copying the API key from Mandrill, then I am pasting it in the “Custom Email Provider Settings”

And the input looks like that:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/9/b9f2af21d2a3cea65c72dcef229e215d5e746282.png)

When I click save it becomes:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/8/68f2923a152117b26f29e9ed4befe8bb080ca6b3.png)

(Just check the length of the first image and the second)

I don’t know if that is the problem or just Auth0 saves the API key in the database and after that makes the input value just to be equal to hardcoded “\*\*\*\*\*\*\*\*”.

---

<div class="post-metadata">

**Author:** ![stoyan.kalinov.ext](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stoyan.kalinov.ext/32/35153_2.png) [@stoyan.kalinov.ext](https://community.auth0.com/u/stoyan.kalinov.ext)\
**Post date:** [April 27, 2022, 7:14am UTC](https://community.auth0.com/t/external-email-provider-mandrill-invalid-api-key/82420/2 "2022-04-27T07:14:56Z")

</div>

Seems like the problem is somewhere on Mandrill side OR there are some additional steps required which are not specified.

Because I made an account with the Sendgrid email provider  
and everything there is working correctly, the email for changing password is send and there are no errors in the auth0 logs.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 27, 2022, 9:24am UTC](https://community.auth0.com/t/external-email-provider-mandrill-invalid-api-key/82420/3 "2022-04-27T09:24:43Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 28, 2022, 11:24am UTC](https://community.auth0.com/t/external-email-provider-mandrill-invalid-api-key/82420/4 "2022-04-28T11:24:52Z")

</div>


