I think it can be done with cURL. From: IBM Mainframe Discussion List <[email protected]> on behalf of "Schmitt, Michael" <[email protected]> Reply-To: IBM Mainframe Discussion List <[email protected]> Date: Tuesday, February 4, 2025 at 5:31 PM To: "[email protected]" <[email protected]> Subject: SMTP Mail on Unix without SMTP Gateway
I have a large REXX exec (actually, a set of execs) that creates email in SMTP format. The exec can convert mainframe files into MIME encoded attachments, with carriage control conversion. And there's a lot of other features. The way it actually sends the email is it generates a stem variable whose lines are STTP format data, then writes that to a DD. The DD has an output destination which is the z/OS Communications Server SMTP gateway on some other system. What I want to do now is use that SMTP data to send email by talking directly to an SMTP server, without using the z/OS SMTP gateway. Is there some Unix way to do this? Preferably that I can call from REXX, but if not that, I can use shell scripts, Python, etc. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected]<mailto:[email protected]> with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
