Have you done a print statement to see what the return code is from the send_mail command?
From the
documentation:
Return codes
"0" - Email was sent successfully.
"10034" - There is no active host with email connection.
"50006" - The SMTP server returned an error code.
"50012" - Timeout - SMTP Server '&02' did not answer within '&01' seconds.
"50014" - Attachment does not exist.
"50027" - Authentication on the SMTP Server failed.
"50028" - The receiver address is not valid. Therefore, the SMTP Server has rejected it.
"50029" - The SMTP client cannot connect to the SMTP Server.
"50030" - Error in socket creation.
"50031" - Host information of the SMTP Server could not be retrieved.
"50032" - The SMTP client cannot communicate with the SMTP Server anymore.
"50033" - The SMTP client cannot receive data from the SMTP Server.
"50034" - Data cannot be sent to the SMTP Server.
"50035" - Windows sockets cannot be initialized.
"50036" - Host name of the local computer cannot be retrieved.
"53202" - The setting '&01' you are searching for was not found.
Original Message:
Sent: 06-10-2019 07:09 AM
From: Craig Sweeney
Subject: Issue sending email from Automic v12
Hello
We are just testing sending emails from our version 12.2 Automic environment but the email never seems to get sent.
We have the SMTP_FROM_ADDR and the SMTP_SERVER set in the UC_CLIENT_SETTINGS in client 0 and the email notification
job does complete successfully, but we get no email.
If I send an email directly from the AutomationEngine server using telnet and the same settings as the UC_CLIENT_SETTINGS then the email will get sent.
Because the email is being sent via the telnet test, the email team are saying it is an application issue.
Just wondering if there is anything else we need to set in the 12.2 settings to get the emails working ?
Regards
Craig