//*
//** Encode the ZIP file using the ENBASE64 Rexx exec
//*
//B64 EXEC PGM=IRXJCL,
// PARM='ENBASE64'
//SYSEXEC DD DISP=SHR,DSN=ibmuser.SYSEXEC
//*
//SYSUT1 DD DISP=SHR,DSN=ibmuser.A.ZIP
//SYSUT2 DD DSN=&&BASE64,
// DISP=(,PASS),UNIT=SYSDA,
// DCB=(LRECL=80,BLKSIZE=8800,RECFM=FB),
// SPACE=(CYL,(5,0),RLSE)
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//*
//** Send the note via SMTP (with MIME attachment)
//*
//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
helo MVSHOST
mail from:
rcpt to:
data
From: MVSUser@MVSHost.xyz.com
To: unixuser@pop3.xyz.com
Subject: Test message from MVS using SMTP (with ZIP MIME att.)
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="---- =_NextPart_000_01BD3BAF.A762FD80"
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------ =_NextPart_000_01BD3BAF.A762FD80
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Attached is a zip file
------ =_NextPart_000_01BD3BAF.A762FD80
Content-Type: application/octet-stream; name="a.zip"
Content-Transfer-Encoding: base64
/*
// DD DISP=(OLD,PASS),DSN=&&BASE64
// DD *
------ =_NextPart_000_01BD3BAF.A762FD80--
/*
|