# Email Notifications

**URL:** <https://forum.inductiveautomation.com/t/email-notifications/78739>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 5, 2023, 2:44am UTC](https://forum.inductiveautomation.com/t/email-notifications/78739 "2023-09-05T02:44:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Ambegaonkar](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@Sameer\_Ambegaonkar](https://forum.inductiveautomation.com/u/Sameer_Ambegaonkar)\
**Post date:** [September 5, 2023, 2:44am UTC](https://forum.inductiveautomation.com/t/email-notifications/78739/1 "2023-09-05T02:44:56Z")

</div>

Trying to setup alarm email notification for MS outlook. Refer screenshots. Test mail is unsuccessful. Appreciate help if anybody done this before.

Regards,  
Sameer

 ![email settings2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/8/08e5eb28281bbf40fb8da92cbf05d3b78d64a887.png)  
 ![email settings1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/0/a0ec1bf5acfb873c13f784e109919dbf40375d65.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 5, 2023, 3:19am UTC](https://forum.inductiveautomation.com/t/email-notifications/78739/2 "2023-09-05T03:19:24Z")

</div>

The error message suggests you have the wrong credentials.

Given that your screenshot shows you're trying to authenticate as "Administrator" against the public `smtp.office365.com` mail server I'd wager that error message is correct...

---

<div class="post-metadata">

**Author:** ![Sameer\_Ambegaonkar](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@Sameer\_Ambegaonkar](https://forum.inductiveautomation.com/u/Sameer_Ambegaonkar)\
**Post date:** [September 5, 2023, 3:50am UTC](https://forum.inductiveautomation.com/t/email-notifications/78739/3 "2023-09-05T03:50:28Z")

</div>

Thanks for your reply.

Get this error when no user is configured. So looks it user configuration is necessary.  
Not sure what's the purpose of the user authentication and who it has to be.

javax.mail.MessagingException: Can't send command to SMTP host;  
nested exception is:  
java.net.SocketException: Connection or outbound has closed

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 5, 2023, 4:12am UTC](https://forum.inductiveautomation.com/t/email-notifications/78739/4 "2023-09-05T04:12:11Z")

</div>

> [@Kevin.Herron](#):
>
> Given that your screenshot shows you're trying to authenticate as "Administrator" against the public `smtp.office365.com` mail server I'd wager that error message is correct...

Kevin hinted that there's likely no username called Administrator on a public SMTP server, and if there is, you probably don't know its password. You need to use a valid office365 username and password. The username will more than likely include a domain like MrPotato@FarmersDirect.com.mars

---

<div class="post-metadata">

**Author:** ![Sameer\_Ambegaonkar](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@Sameer\_Ambegaonkar](https://forum.inductiveautomation.com/u/Sameer_Ambegaonkar)\
**Post date:** [September 5, 2023, 11:56am UTC](https://forum.inductiveautomation.com/t/email-notifications/78739/5 "2023-09-05T11:56:01Z")

</div>

Should the username have admin or any special access to SMTP server or can be any regular user.

Regards,  
Sameer

---

<div class="post-metadata">

**Author:** ![Kfoldesi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kfoldesi/32/11327_2.png) [@Kfoldesi](https://forum.inductiveautomation.com/u/Kfoldesi)\
**Post date:** [September 5, 2023, 12:08pm UTC](https://forum.inductiveautomation.com/t/email-notifications/78739/6 "2023-09-05T12:08:22Z")

</div>

Any User. You'll need an account setup for you to use.

Or anyone could just send email with any thing in it to everyone all the time... Plus, Microsoft wants to charge for using their email service.

---

<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:** [September 5, 2023, 12:26pm UTC](https://forum.inductiveautomation.com/t/email-notifications/78739/7 "2023-09-05T12:26:23Z")

</div>

> [@Kfoldesi](#):
>
> Any User.

Well, maybe. It is typical for public mail servers to require the "From" address in an email match the credentials used to authenticate to the server. Ignition doesn't make the user do this, as many internal mail servers don't have this requirement (but usually only allow delivery internally). So be sure you set a proper "From" address everywhere you use a profile.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [September 5, 2023, 12:26pm UTC](https://forum.inductiveautomation.com/t/email-notifications/78739/8 "2023-09-05T12:26:44Z")

</div>

First check if you can use the system without a username. If you are sending from within the company network it may accept the mail without authentication. (This is the case in my organisation.)

If that doesn't work then test with your own credentials. If that works then ask your IT department to create a service account for you with a "never expires" password. Use that when ready.

* * *

Tip:  
Make sure that the emails themselves contain a "from" address that will lead back to the relevant server and script in the event that a malfunction (such as rapidly-repeating emails) causes mail problems. Failure to sort out flooding issues may result in loss or closure of your email system and could be costly for your business. We usually use something like  
`<scriptname>.<servername>.<plant>.<country>@<company-name>.<tld>`

It will also make it look like someone competent and organised is running the show!
