On 8/28/20 5:57 AM, Sasso, Len wrote:
Does anyone have JCL that sends an email, using CSSMTP, from the Mainframe and if it is unable to be delivered, for any reason, sends an email back to the Sender with a corresponding message?

I'm guessing that since CSSMTP is involved, the JCL / job is not speaking SMTP to a receiving server.

I'm not aware of any way that a job can know if there was a hard error (early rejection) if it's not doing the SMTP itself. Maybe there is a way to ask CSSMTP to try to send the message and return an error to the calling job.

But both of these would only reliably detect a hard error (4xy, 5xy) from the receiving SMTP server and wouldn't work for anything downstream of that.

For anything downstream of that, you will need to rely on (hopefully) industry standard / RFC defined DSNs, or worse, home grown bounces.

(More about this in a reply to Paul's comment.)



--
Grant. . . .
unix || die

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to