View previous topic :: View next topic
|
Author |
Message |
kavitha_cts
New User
Joined: 09 Feb 2006 Posts: 3 Location: Chennai
|
|
|
|
I want to know how to send mails using jcl. I want the detailed one. |
|
Back to top |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
Hi kavitha,
try this...i got this from the forum only...dont ask me explanation.....
//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO NCJESA00
MAIL FROM: (find out from your system guys what must go here)
RCPT TO:<your@email.address>
DATA
FROM: sending@email.address
TO: name
SUBJECT: Notepad file
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="BOUNDRY1"
--BOUNDRY1
CONTENT-TYPE: TEXT/PLAIN; CHARSET="US-ASCII"
CONTENT-TRANSFER-ENCODING: 7BIT
Hallo
This is your Notepad file
--BOUNDRY1
CONTENT-TYPE: APPLICATION/OCTET-STREAM;
CONTENT-DISPOSITION:ATTACHMENT;FILENAME="WHATEVER.TXT"
// DD DISP=SHR,DSN=data.set.name
// DD *
--BOUNDRY1
Thanks,
Rajesh |
|
Back to top |
|
|
Rupesh.Kothari
Member of the Month
Joined: 27 Apr 2005 Posts: 463
|
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
Back to top |
|
|
|