When sending a mail using engine.SendEmail on an automation script does it use to: or rcpt to:
Hugo Lopes [SLC] [DevOps Advocate] Selected answer as best 16th July 2020
Hi Hugo,
the engine.SendEmail function uses the RCPT TO: SMTP message.
Wouter Demuynck [SLC] [DevOps Enabler] Posted new comment 16th July 2020
Note: If you’re seeing errors like “Unexpected DATA response” / “503 Issue RCPT TO command before DATA command”, it typically means that the RCPT TO commands were denied by the mail server, e.g. because mail server policy doesn’t allow sending mails to these destinations.
Additional errors indicating similar problems are RTCP command errors related to “relay”: e.g. “Unexpected RCPT TO response, Last Response: 550 5.7.1 Unable to relay”
In those cases, the mail server needs to be configured to allow these destination mail addresses.