daryani
Programmer
- Aug 28, 2003
- 5
How do I send an email with attachment in REXX
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
//STEP1 EXEC PGM=IEBGENER
//*
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT2 DD SYSOUT=(M,SMTP)
//SYSUT1 DD *
HELO SYSA
MAIL FROM:<PRAKAL@HOTMAIL.COM>
RCPT TO:<DARYANI@HOTMAIL.COM>
DATA
FROM: <KOLUSU@HOTMAIL.COM>
TO: VIKRAM@HOTMAIL.COM
SUBJECT: file
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED;
BOUNDARY= "DELIMITER"
THIS MESSAGE IS IN MIME FORMAT
--DELIMITER
Content-Disposition:attachment;filename="ATTACH FILE.txt"
CONTENT-TYPE: TEXT/HTML
<PRE> <FONT FACE="ARIAL" SIZE=1>
// DD DISP=SHR,DSN=YOUR.PDS(MEMBER)
// DD *
--DELIMITER
.
quit
//