Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to send email through jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to send email through jcl
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: 151
Location: Tokyo, Japan

PostPosted: Thu Jan 22, 2004 6:45 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm
No new posts How to send email with Rich Text usin... santhosh5983 JCL & VSAM 4 Fri Apr 08, 2016 2:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us