Hi,
I am trying to send mail vai JCL using SMTP. I am receiving mail with attachment as well. However, attachment is empty.
Below is the JCL which I am using.
//SENDMAIL JOB (ACCT),'MAIL FILE',CLASS=A,MSGCLASS=Q,MSGLEVEL=(1,1),
// NOTIFY=&SYSUID
//SENDMAIL EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP),DEST=(RD)
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO DH
MAIL FROM:<XXX@aa.com>
RCPT TO:<ABC@xyz.com>
RCPT TO:<PQR@xyz.com>
RCPT TO:<XXX@xyz.com>
DATA
FROM:XXX <XXX@aa.com>
TO: <ABC@xyz.com>;<PQR@xyz.com>
CC: <XXX@xyz.com>
SUBJECT: TEST MAIL
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; boundary="simple boundary"
--simple boundary
Content-Type: text/plain;
Hi,
THIS IS A TEST MAIL TO check mail sending from MAINFRAMES.
REGARDS,
XXX
--simple boundary
Content-Type: text/plain; name="Data.txt"
Content-Disposition: attachment; filename="Data.txt"
// DD DSN=*******.APPL.DATATEST,DISP=SHR
// DD *
.
QUIT
/*
//*
Attachment text is present in the file *******.APPL.DATATEST
*******.APPL.DATATEST has LRECL as 80
What could be the reason behind the empty attachment file?