# Error in sending email

**URL:** <https://forum.inductiveautomation.com/t/error-in-sending-email/97168>\
**Category:** Ignition\
**Tags:** reporting\
**Created:** [October 11, 2024, 7:46pm UTC](https://forum.inductiveautomation.com/t/error-in-sending-email/97168 "2024-10-11T19:46:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AUTOMATIZACION\_SPI](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@AUTOMATIZACION\_SPI](https://forum.inductiveautomation.com/u/AUTOMATIZACION_SPI)\
**Post date:** [October 11, 2024, 7:46pm UTC](https://forum.inductiveautomation.com/t/error-in-sending-email/97168/1 "2024-10-11T19:46:04Z")

</div>

Hi, I need assistance with a problem that I specting in ignition.  
When the task for sending a report via e-mail runs, the system show the following error:  
javax.mail.AuthenticationFailedException: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled.  
I don´t now what happends, appreciate some ideas for solve this.  
Thanks.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [October 11, 2024, 7:51pm UTC](https://forum.inductiveautomation.com/t/error-in-sending-email/97168/2 "2024-10-11T19:51:21Z")

</div>

Are you using an email profile or are you passing the username/password combo when you call to send the email?

Based on the error I would guess that whatever email server you are trying to authenticate against doesn't allow just username/password combo and expects something like OAuth or similar.

Ignition does support making an OAuth SMTP email profile.

---

<div class="post-metadata">

**Author:** ![AUTOMATIZACION\_SPI](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@AUTOMATIZACION\_SPI](https://forum.inductiveautomation.com/u/AUTOMATIZACION_SPI)\
**Post date:** [October 11, 2024, 8:30pm UTC](https://forum.inductiveautomation.com/t/error-in-sending-email/97168/3 "2024-10-11T20:30:51Z")

</div>

Thanks for your answer, in the gateway is configured the classic smtp profile with user name and password. the last month this functionality (sends email) works fine, but in October this crashes and I don´t undertand why.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 11, 2024, 8:34pm UTC](https://forum.inductiveautomation.com/t/error-in-sending-email/97168/4 "2024-10-11T20:34:17Z")

</div>

Sounds like something changed in the email provider. Many public providers are switching to OAuth. You should check with your provider.

---

<div class="post-metadata">

**Author:** ![AUTOMATIZACION\_SPI](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@AUTOMATIZACION\_SPI](https://forum.inductiveautomation.com/u/AUTOMATIZACION_SPI)\
**Post date:** [October 11, 2024, 8:47pm UTC](https://forum.inductiveautomation.com/t/error-in-sending-email/97168/5 "2024-10-11T20:47:32Z")

</div>

Maybe, It could be ports blocked in the computer that runs ignition application? I scanned the ports, searching for 587 remote port that is configured in the gateway and I can´t see a effective connection to this port. The computer that runs Ignition application is connected to a corporate domain, I think about some policies that could be affecting or blocking the email's sending procedure.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 11, 2024, 9:29pm UTC](https://forum.inductiveautomation.com/t/error-in-sending-email/97168/6 "2024-10-11T21:29:48Z")

</div>

> [@AUTOMATIZACION\_SPI](#):
>
> could be ports blocked

That wouldn't yield an authorization error. It would yield a connection failure or a timeout.

Your user and password is being rejected for some reason. Whoever runs your email server should have logs they can look at to tell you why.
