Getting An Error to send a email

getting an error to send a email from ignition like: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Error sending email. Session id=F65CF6D0

recipients = ["sanketlandge.1999@gmail.com"]
From = "sanketlandge.28@gmail.com"
Subject="Test email from Ignition"
body="This is a test email"
system.net.sendEmail(smtpProfile="A1",fromAddr=From,subject=Subject,body=body,html=1,to=recipients)

I have already added app password for my gmail account and that password i'm using here but not working

  • Did you look at the settings used in the post I linked to?
  • smtpProfile="And On" does not match "A1" used in your screenshot.

i have changed that


I have added app password for mail account, and that i'm using in smtp profile

An unknown host exception means Ignition isn't even getting to open a connection to gmail, as it cannot find it. Fix your DNS system for the gateway.

1 Like

Now I'm trying using my company office 365 mail but getting error

javax.mail.AuthenticationFailedException: ;
nested exception is:
javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out