# Problem with email notifications

**URL:** <https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 22, 2022, 12:29pm UTC](https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924 "2022-12-22T12:29:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [December 22, 2022, 12:29pm UTC](https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924/1 "2022-12-22T12:29:55Z")

</div>

Hello,

I have a problem with email notifications in ignition.

I have email settings -\> SMTP Profile created and its work fine. I can send a test email.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/a/fafb181b038dc1a87cb4864d1d3ef411b3145fce.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/1/616a341abc5f4fb326aeda2082a5c4dd6832acff.png)

I created also alarm notification profiles:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/5/854d482238c07a41a2c5bc3bace3629d9e46c7e8.png)

Unfortunately, this configuration does not want to save I also performed a restart of the gateway without success. Internally it tries to connect after the lower defined mailbox outside SMTP profiles? What went wrong?

Below logs when sending email shows undefined SMTP profile:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/c/dc6d5a8fdc6d3c85eca57114856759a3669a6a5e.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/2/8210bc3f06f35bc52c6a1bf7d674e0cafecc88f2.png)

Best Regards,  
Michał Góralczyk

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 22, 2022, 4:57pm UTC](https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924/2 "2022-12-22T16:57:42Z")

</div>

Can you set that EmailNotificationProfile logger to TRACE and try your test again?

---

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [December 23, 2022, 12:09pm UTC](https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924/3 "2022-12-23T12:09:49Z")

</div>

Set to TRACE:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/4/d4caf60894119c191a0d4a01152f4b59798f36c4.png)

---

<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:** [December 23, 2022, 1:35pm UTC](https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924/4 "2022-12-23T13:35:18Z")

</div>

Click the "+" icon on those errors to get the complete message.

---

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [December 23, 2022, 1:41pm UTC](https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924/5 "2022-12-23T13:41:01Z")

</div>

```auto
com.sun.mail.smtp.SMTPSendFailedException: 554 5.2.252 SendAsDenied; alarms@nomadelectric365.onmicrosoft.com not allowed to send as default@example.com; STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message [BeginDiagnosticData]Cannot submit message. 0.35250:96320000, 1.36674:01000000, 1.61250:00000000, 1.45378:02000000, 1.44866:00000000, 1.36674:7A000000, 1.61250:00000000, 1.45378:05000000, 1.44866:00140000, 1.36674:0A000000, 1.61250:00000000, 1.45378:16000000, 1.44866:A01B0000, 1.36674:0E000000, 1.61250:00000000, 1.45378:B91B0000, 1.44866:36020000, 16.55847:D70E0000, 17.43559:0000000030020000000000000000000000000000, 20.52176:140F38970D00101019000000, 20.50032:140F38977D17000090330000, 0.53414:32000000, 0.35180:03000136, 255.23226:95330000, 255.27962:7A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:4A000000, 0.35250:4800D13D, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:52000000, 1.36674:32000000, 1.61250:00000000, 1.45378:57000000, 1.44866:01000000, 16.55847:CD000000, 17.43559:00000000D0030000000000000000000000000000, 20.52176:140F38970D0010106F000000, 20.50032:140F38977D170000B8330000, 0.53414:74000000, 0.35180:0A004366, 255.23226:BD330000, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:7E000000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:81000000, 0.38698:46000000, 1.41134:46000000, 0.37692:86000000, 0.37948:86000000, 5.33852:00000000534D545000000000, 7.36354:010000000000010986000000, 4.56248:DC040000, 7.40748:010000000000010B5A000100, 7.57132:00000000000000005A000100, 4.39640:DC040000, 1.63016:32000000, 8.45434:801084DC5D77764E9966D22C1E38B3B75A000100, 1.46798:04000000, 5.10786:0000000031352E32302E353934342E3031333A444237505230374D42363130383A35303630366537362D663734362D346135662D393333662D3238393835396231336563393A3131343239363A2E4E4554204672616D65776F726B20342E382E393033322E30001000000000, 7.51330:4416CC1AEBE4DA0800000000, 0.39570:07000000, 1.55954:0A000000, 0.49266:02000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:7A000000, 1.56562:00000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:7A000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0B00F410, 255.31418:07360000, 0.22753:DC000000, 255.21817:DC040000, 0.64418:0C360000, 4.39842:DC040000, 0.41586:02019866, 4.60547:DC040000, 0.21966:E3000000, 4.30158:DC040000[EndDiagnosticData] [Hostname=DB7PR07MB6108.eurprd07.prod.outlook.com]
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2202)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1980)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1197)
at javax.mail.Transport.send0(Transport.java:254)
at javax.mail.Transport.send(Transport.java:124)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.sendMessage(EmailNotificationProfile.java:749)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.buildAndMaybeSendMessage(EmailNotificationProfile.java:737)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:651)

at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile.lambda$sendNotification$0(EmailNotificationProfile.java:465)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/1/212261aa38b30dc11b226d105df3a7ab51b6d5a8.png)

---

<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:** [December 23, 2022, 1:44pm UTC](https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924/6 "2022-12-23T13:44:40Z")

</div>

Somewhere you are missing **your** from address. It needs to be a valid "from" address for that email account.

---

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [December 23, 2022, 1:49pm UTC](https://forum.inductiveautomation.com/t/problem-with-email-notifications/67924/7 "2022-12-23T13:49:43Z")

</div>

Somehow it cleared up when changing the mailbox domain, thank you!
