If you were not aware, there is a List for TCP/IP questions. To join, if you have not done so,
TCPIP To subscribe, send mail to lists...@vm.marist.edu with the command (paste it!) in the e-mail message body: SUBSCRIBE IBMTCP-L Or this url and go to the bottom of the webpage: http://www2.marist.edu/htbin/wlvindex?IBMTCP-L You might also look at the tool XMITIP freeware. A very powerful SMTP mail generator for z/OS and OS/390 (batch and TSO). Supports file attachments as plain text, binary, or can convert files to html or rtf. Includes a very powerful ISPF dialog interface that simplifies the creation of SMTP mail from z/OS and OS/390. Now includes support for STARTTLS (Secure SMTP if using a SMTP server that supports STARTTLS like CSSMTP or Sendmail). http://www.lbdsoftware.com/ or here http://www.lbdsoftware.com/tcpip.html Lizette > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Hilary Hurwitz > Sent: Tuesday, November 01, 2016 5:41 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Help with email > > Until now our site's use of email from the mainframe has been very limited, > due to security concerns. > > However I am not to be allowed to use email in a limited way. > > The JCL I was told to use was > //S16DBNA1 JOB (XO,005,0099,1,0),NAT,NOTIFY=&SYSUID, > // TIME=(001,39),CLASS=O, > // REGION=5M > /*JOBPARM SYSAFF=BL1A > //IEBGENER EXEC PGM=IEBGENER > //SYSIN DD DUMMY > //SYSUT1 DD * > HELO N1 > MAIL > FROM:<HILIRI_HORVITZE@SNIFIM.BLROOT<mailto:HILIRI_HORVITZE@SNIFIM.BLROOT>> > RCPT TO:<HILARY_H@SNIFIM.BLROOT<mailto:HILARY_H@SNIFIM.BLROOT>> > DATA > SUBJECT:SUBJECT LINE > HALLO . THIS IS EMAIL > FROM THE MAINFRAME. > BYE . > . > QUIT > /* > //SYSUT2 DD SYSOUT=(B,SMTP) > //SYSOUT DD SYSOUT=V > //SYSPRINT DD SYSOUT=V > > But I have a few problems with this. > If the email fails the job ends with a 0, and until a rejection email arrives > back to me, I have no idea of problems. > > I have a feeling we have a hole in the knowledge of our tcp people here. Is > this the way to work ? Surely the job should be able to know if the email was > sent? > > I came from VSE environment where we were given responses. > Is this the best way to send emails ? > > What am I missing ? > > Hilary > > PS the jcl above works with no problems, so don't try and debug it please ;) ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN