IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to send email through jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venkatsrib

New User


Joined: 20 Oct 2003
Posts: 3

PostPosted: Tue Jan 20, 2004 7:14 pm
Reply with quote

icon_question.gif
hi,

can any of you tell me how to send email through jcl.

venkat.
Back to top
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Thu Jan 22, 2004 6:45 pm
Reply with quote

Can you please try following code ?
Code:

//GL4MJOB1 JOB (6496,TECH),'SD',CLASS=T,         
// MSGCLASS=T,NOTIFY=&SYSUID                           
//*-------------------------------------------------- 
//* send as an attachment default name with html       
//*-------------------------------------------------- 
//MAIL2   EXEC PGM=IEBGENER                           
//SYSIN    DD DUMMY                                   
//SYSPRINT DD SYSOUT=*                                 
//SYSUDUMP DD SYSOUT=*                                 
//SYSUT1   DD *                                       
HELO SYSA                                             
MAIL FROM:<GL4M@TXU.COM>                               
RCPT TO:<gl4m@txu.com>                                 DATA                                                   
FROM:      <GL4M@TXU.COM>                             
TO:         gl4m@txu.com                               
SUBJECT: simple mime                                   
MIME-Version: 1.0                                     
Content-type: text/html;               
 <PRE> <FONT FACE="ARIAL" SIZE=1>                                             this is a test mime                   
nothing fancy                                                                 
.                                     
quit                                   
/*                                     
//SYSUT2   DD SYSOUT=(B,SMTP)         
//                                     


Regards,
Sandip.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts TXT2PDF and then SMTP email a PDF JCL & VSAM 4
No new posts parmeter existence bit for URIMAP in ... CICS 1
No new posts Send email without SMTP All Other Mainframe Topics 5
No new posts Send text at cursor position on an IS... CLIST & REXX 10
Search our Forums:

Back to Top