I believe my JCL is free of errors:
//SMTP EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY,DCB=BLKSIZE=80
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO NODENAME
MAIL FROM:<EMAIL@AA.COM>
RCPT TO:<EMAIL@AA.COM>
DATA
FROM: <EMAIL@AA.COM>
TO: <EMAIL@AA.COM>
SUBJECT: TEST MESSAGE FROM MVS USING SMTP
MIME-Version: 1.0
Content-type: multipart/mixed; boundary="SIMPLE BOUNDARY"
THIS IS A TEST.
--SIMPLE BOUNDARY
QUIT
Please open the attachment, to solve your problems...
--SIMPLE BOUNDARY
Content-type: text/html
Try Google<a href="http://www.google.com">GOOGLE</a>
--SIMPLE BOUNDARY--
.
QUIT
//
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY,DCB=BLKSIZE=80
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO NODENAME
MAIL FROM:<EMAIL@AA.COM>
RCPT TO:<EMAIL@AA.COM>
DATA
FROM: <EMAIL@AA.COM>
TO: <EMAIL@AA.COM>
SUBJECT: TEST MESSAGE FROM MVS USING SMTP
MIME-Version: 1.0
Content-type: multipart/mixed; boundary="SIMPLE BOUNDARY"
THIS IS A TEST.
--SIMPLE BOUNDARY
QUIT
Please open the attachment, to solve your problems...
--SIMPLE BOUNDARY
Content-type: text/html
Try Google<a href="http://www.google.com">GOOGLE</a>
--SIMPLE BOUNDARY--
.
QUIT
//
I have replaced the emails in the JCL with dud ones of course.
My job completes with RC0 of course, but the emails never come through. I checked the Output queue in SDSF and there my attempts are stuck. I can see the WTR is of course SMTP.
I looked in my SMTP started task and the class it uses is indeed B.
I have been researching this and I believe that something else needs to do some work here and grab my SMTP outputs from the output queue but nothing ever happens.
Is there something I could look into and maybe figure out what is going on here?
any advice is appreciated!
Thank you!