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 REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts help send file AFT CONTROLM EM IBM Tools 0
No new posts how to send 10 rows at a time to output CICS 2
No new posts interactive cics program using CICS s... CICS 5
Search our Forums:

Back to Top