Could not connect to SMTP host

 3 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
JudeBac
Veteran Member
Posts: 129
Veteran Member
    Could not connect to SMTP host: example.smtp.com, port: 25;
    java.net.ConnectException: Connection refused


    We do not have an issue with the SMTP Mail Server. However, for some reason, glitches do happen. So far twice this year and none before that.

    I can't find a way to catch this error inside a processflow. It is in the wuerr log file. I can check if the wuerr file exists but I need to be more specifc, which is, does it contains "Could not connect to SMTP host".

    Appreciate your advice.

    Regards,

    Jude
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      If you load and read the error file in ProcessFlow you could do an indexOf function for "Could not connect to SMTP host" and if >0 then you know this is your error.
      David Williams
      JudeBac
      Veteran Member
      Posts: 129
      Veteran Member
        Thanks David. That works. I added this logic in my daily PF status report.

        Regards,

        Jude
        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          You're welcome.
          David Williams