send_mail function return error code '9'

Document ID : KB000093078
Last Modified Date : 27/04/2018
Show Technical Document Details
After upgraded to AE12.1.1, the send_mail function and the mail notifications are not working anymore. In previous version with the same settings: SMTP settings in the CLIENT_SETTINGS, works fine.
With an mail notification object, we get the following error:
22.02.2018 10:30:52 U00050030 The SMTP client cannot create socket, error code '9', error description: 'Bad address format'.

With the send_mail function, we get:
2018-02-22 10:30:59 - U00020408 Mail error code 50030

According to the documentation, this error code means ""50030" - Error in socket creation."
Why does the internal smtp client has to open an socket for sending a mail?
Defect - bug with mail notification and send_mail function
Please accept our apology for the inconvenience it may cause, the issue was addressed as a bug in our current version and the fix for this problem is preliminary planned for the following versions:
  • Automation.Engine 12.1.1 HF3 - Released 2018-03-23
  • Automation Engine 12.2.0 - Planned release date: 2018-06-19
  • Automation Engine 12.1.2 - Planned release date: 2018-05-21