# Email Notification profile

**URL:** <https://forum.inductiveautomation.com/t/email-notification-profile/6647>\
**Category:** Ignition\
**Created:** [June 5, 2013, 1:54pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile/6647 "2013-06-05T13:54:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [June 5, 2013, 1:54pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile/6647/1 "2013-06-05T13:54:10Z")

</div>

Using a few different SMTPs  
None have worked for me.

I have an imail hostname  
default port 25  
and there is not a username or password.  
In the pipeline setup I have the account address in the FROM selection.  
I’m emailing to the users group which I am a part of and my email address is a gmail one.  
Do I need something more?

Is there any way someone could get me started using gmail or something common so I can figure out what I’m doing wrong?

---

<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:** [June 5, 2013, 2:06pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile/6647/2 "2013-06-05T14:06:38Z")

</div>

One place to start might be to put the Notification Block into ‘Test Mode’ and then watch the console when you trigger the alarms to see who the message would have been sent to. If this all looks correct, then you can troubleshoot your email profile by searching for ‘EmailNotificationProfile’ on the Levels tab, turning the profile to DEBUG, and attempting notification again.

---

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [June 5, 2013, 3:37pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile/6647/3 "2013-06-05T15:37:47Z")

</div>

Time Logger Message  
11:32:39 AM EmailNotificationProfile[EmailNotification] [hostname=tls://smtp.gmail.com,port=465] Error sending message to user ‘usr-prov:Security:/usr:aj’.

javax.mail.MessagingException: Unknown SMTP host: tls://smtp.gmail.com;  
nested exception is:  
java.net.UnknownHostException: tls://smtp.gmail.com  
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1970)  
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)  
at javax.mail.Service.connect(Service.java:317)  
at javax.mail.Service.connect(Service.java:176)  
at javax.mail.Service.connect(Service.java:125)  
at javax.mail.Transport.send0(Transport.java:194)  
at javax.mail.Transport.send(Transport.java:124)  
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:317)  
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$3.run(EmailNotificationProfile.java:172)  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)  
Caused by: java.net.UnknownHostException: tls://smtp.gmail.com  
at java.net.PlainSocketImpl.connect(Unknown Source)  
at java.net.SocksSocketImpl.connect(Unknown Source)  
at java.net.Socket.connect(Unknown Source)  
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)  
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)  
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)  
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)  
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)  
… 11 more

No luck.

---

<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:** [June 5, 2013, 3:39pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile/6647/4 "2013-06-05T15:39:43Z")

</div>

Why do you have a ‘tls://’ prefix on the hostname?

---

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [June 5, 2013, 4:14pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile/6647/5 "2013-06-05T16:14:48Z")

</div>

I tried other names and ports,  
nothing has worked yet.  
[support.qualityunit.com/107274-H … -settings-](http://support.qualityunit.com/107274-How-to-configure-Gmail-SMTP-settings-)

Edit:  
I dropped the prefix on the host and kept the port.  
It worked now and I am getting emails from gmail.
