Here ya go : (but I am surprised someone at your wrokpalce couldn't supply this)
<pre>
000013 //************************************************
000014 //SMTPTEST EXEC PGM=IEBGENER
000015 //SYSPRINT DD SYSOUT=*
000016 //SYSIN DD DUMMY
000017 //SYSUT2 DD SYSOUT=(L,SMTP)
000018 //SYSUT1 DD *
000019 HELO ISPSYSB
000020 MAIL FROM: <PRATTST@ISPSYSB>
000021 RCPT TO: <STEVE_PRATT@your.addr.org>
000022 DATA
000023 FROM: MVS COMPUTER
000024 TO: <STEVE_PRATT@your.addr.org>
000025 SUBJECT: SMTP TEST
000026
000027 THIS IS A TEST. DID YOU GET IT?
000028
000029 AS OF JULY 2007, THIS WORKS.
000030 /*
</pre>
Last Wiki Answer Submitted: January 21, 2010 2:13 pm by Meandyou5,205 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
The JCL provided will send an email but will not send any file as an attachment. I do not believe that capability exists natively. You should see if your company has software that will do this. If not and you are looking for a free solution look up XMITIP in your favorite browser. There is no official support so it may not be viable in your environment but a great tool if you can use it. Of course if I am mistaken and it can be done natively someone will let us all know.
The JCL provided will send an email but will not send any file as an attachment. I do not believe that capability exists natively. You should see if your company has software that will do this. If not and you are looking for a free solution look up XMITIP in your favorite browser. There is no official support so it may not be viable in your environment but a great tool if you can use it. Of course if I am mistaken and it can be done natively someone will let us all know.