AppWorx, Dollar Universe and Sysload Community

 View Only
  • 1.  Issue sending email from Automic v12

    Posted Jun 10, 2019 07:12 AM
    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


  • 2.  RE: Issue sending email from Automic v12

    Posted Jun 10, 2019 11:12 AM
    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.


  • 3.  RE: Issue sending email from Automic v12

    Posted Jun 10, 2019 01:17 PM
    Hi Jared

    Thanks for the reply.

    I get 0000 return code from the send_mail command. I've tried to play around to get an error by removing the smtp_server  value in UC_CLIENT_SETTINGS and this does return the 10034 error.  However if I change the smtp_server variable to random letters, it still returns the 0000 return code.

    Difficult to determine whats actually going on. Doesn't seem to be any helpful log messages in the various AE temp folders either.

    Regards
    Craig


  • 4.  RE: Issue sending email from Automic v12

    Posted Jun 12, 2019 07:38 AM
    What is the command you are using to send emails?​


  • 5.  RE: Issue sending email from Automic v12

    Posted Jun 12, 2019 10:13 AM
    Hi Bhagyashree

    We've tried creating an email notification object and sending an email via executing the object and also by using the SEND_MAIL command in a script.

    Regards
    Craig


  • 6.  RE: Issue sending email from Automic v12

    Posted Jul 02, 2019 09:42 AM
    If it's unencrypted SMTP, maybe try doing a tcpdump on port 25, see if Automic even tries to send that email. If it does, there's possibly some SMTP error message in the ascii output that could be helpful.


  • 7.  RE: Issue sending email from Automic v12
    Best Answer

    Posted Jun 20, 2019 09:46 AM
    ​we got Mail Issue after Migration to 12.2 too:
    we changed UC_CLIENT_SETTINGS
    SMTP_SERVER localhost to 127.0.01

    now we can send Mail without any problem