Using Ignition Version: 8.1.36 (b2024010211), Perspective & Windows 11
I have configured email in Gateway, & successfully sent a test email to myself from gateway
Now I am trying to configure a button to send email onClick
My button Click code is (with names changed to protect the innocent!):
def runAction(self, event):
stmp = "smtp.telstra.com:465:tls"
fromAddr = "someone@bigpond.net.au"
subject = "abc"
body = "qwerty"
to = "someoneElse@bigpond.net.au"
system.net.sendEmail(stmp,fromAddr, subject, body, False, to )
I get a "read timed out message:
com.inductiveautomation.ignition.common.script.JythonExecException
Traceback (most recent call last):
File "<function:runAction>", line 17, in runAction
nested exception is:
java.net.SocketTimeoutException: Read timed out
javax.mail.MessagingException: javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
caused by org.python.core.PyException
Traceback (most recent call last):
File "<function:runAction>", line 17, in runAction
nested exception is:
java.net.SocketTimeoutException: Read timed out
javax.mail.MessagingException: javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
caused by javax.mail.MessagingException
javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
caused by SocketTimeoutException: Read timed out
Ignition v8.1.36 (b2024010211)
Java: Azul Systems, Inc. 17.0.8
There are many things in this world I don't understand. Now I don't understand why I get a "READ" error.
Can someone enlighten me please