# Unable to send email via smtp

**URL:** <https://community.auth0.com/t/unable-to-send-email-via-smtp/188463>\
**Category:** Get Help\
**Tags:** email-providers, smtp\
**Created:** [June 26, 2025, 12:23pm UTC](https://community.auth0.com/t/unable-to-send-email-via-smtp/188463 "2025-06-26T12:23:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koki-1205](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Koki-1205](https://community.auth0.com/u/Koki-1205)\
**Post date:** [June 26, 2025, 12:23pm UTC](https://community.auth0.com/t/unable-to-send-email-via-smtp/188463/1 "2025-06-26T12:23:50Z")

</div>

I have the same smtp information registered for all development, staging, and production, but I get errors sending emails outside of the development environment.

I would appreciate it if someone could tell me what the cause is.

Log of sending error]  
{  
“date”: “2025-06-26T12:16:24.739Z”,  
“type”: “fn”,  
“description”: “To: {address}”,  
“connection\_id”: “”,  
“ip”: “221.103.226.216”,  
" details":. {  
“email\_type”: “try\_provider\_configuration\_email”,  
“notification\_type”:. “try\_provider\_configuration\_email”,  
“to”: “{address}”,  
“error”:. “Error sending email:. Invalid login: 535 Error: authentication failed, authentication failed, authentication failed, authentication failed, authentication failed 535 Error: authentication failed, system busy”  
},  
“user\_id”:“”, “user\_name”. “”,  
“user\_name”: “{address}”,  
“environment\_name”: “prod-jp-1”,  
“log\_id”:. “900202506261216838394000000000000001223372040953481646”,  
“tenant\_name”: “{tenant}”,  
“\_id”:. “90020250626121624838394000000000000001223372040953481646”,  
“isMobile”: false,  
“user\_agent”: “false”. “Other 0.0.0 / Other 0.0.0”,  
“id”: “90020250626121624838394000000000000001223372040953481646”  
}

Translated with [DeepL.com](http://DeepL.com) (free version)

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [June 26, 2025, 9:41pm UTC](https://community.auth0.com/t/unable-to-send-email-via-smtp/188463/3 "2025-06-26T21:41:04Z")

</div>

Hi @Koki-1205,

Welcome back to the Auth0 Community!

The error above is an authentication error happening on the Email Provider’s end and is likely caused because the SMTP provider rejects the request due to the fact that the submitted credentials do not have the necessary permissions.

You can check out this [knowledge article](https://community.auth0.com/t/error-invalid-login-535-5-7-139-authentication-unsuccessful/137421) that provides the steps needed to resolve this issue.

I hope this helps!  
Thanks,  
Remus

---

<div class="post-metadata">

**Author:** ![Koki-1205](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Koki-1205](https://community.auth0.com/u/Koki-1205)\
**Post date:** [June 27, 2025, 3:13am UTC](https://community.auth0.com/t/unable-to-send-email-via-smtp/188463/4 "2025-06-27T03:13:47Z")

</div>

Thanks to @remus.ivan  
for contacting me.

I checked the article, but I am using a custom smtp provider and it didn’t seem to be helpful.  
(I use Lark provided by ByteDance to manage my email).

Also, what I am most curious about is why only smtp in the development environment is working correctly.

I am using the same information in all environments, do you know why it is not working outside of the development environment?

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [June 27, 2025, 6:39pm UTC](https://community.auth0.com/t/unable-to-send-email-via-smtp/188463/5 "2025-06-27T18:39:32Z")

</div>

Hi @Koki-1205,

The error message described above is pointing out exactly where the issue resides, being an authentication error on the custom SMTP provider’s end. The reason why this might still be working in the development environment is for testing purposes, presuming that the IP address is implicitly trusted by Lark’s SMTP server or within a permitted range.

But when your staging/production servers try to connect, their IPs are not recognized, leading to authentication failures, so the reason why this is not allowed on other environments is because of firewall restrictions, so the associated IP addresses would have to be whitelisted on the provider’s end. This is also mentioned in our [Auth0 IP Addresses for Allow Lists](https://auth0.com/docs/secure/security-guidance/data-security/allowlist) documentation

> if you’ve configured an on-premise SMTP provider in Auth0, then you may need to configure your firewall to allow inbound traffic from Auth0.

but I would also advise having a look at our [Email provider setup](https://auth0.com/docs/get-started/architecture-scenarios/business-to-business/launch/operations-readiness#email-provider-setup) information.

Hopefully this helps a bit more!  
Kind regards,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 11, 2025, 6:39pm UTC](https://community.auth0.com/t/unable-to-send-email-via-smtp/188463/6 "2025-07-11T18:39:46Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
