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

Mail through JCL works, but not sending subject


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

New User


Joined: 30 Oct 2009
Posts: 36
Location: Chennai

PostPosted: Wed Jan 02, 2013 11:18 am
Reply with quote

Hi,

This is the JCL coding, I am using for generating mail. I received the email but i didn't get the subject line. And also, i included some CC for that mail. Not sure, why these are not working. Kindly let me know if anything missed in the below coding.


Code:
//STEP01 EXEC PGM=IEBGENER                           
//*                                                   
//SYSIN    DD DUMMY                                   
//SYSOUT   DD SYSOUT=*                               
//SYSPRINT DD SYSOUT=*                               
//SYSUT1   DD DSN=TEST.MAIL.DETAILS(MAILHEAD),   
//            DISP=SHR                                                             
//SYSUT2   DD SYSOUT=(Y,SMTP),                       
//         DCB=(LRECL=80,BLKSIZE=80,RECFM=F,DSORG=PS)
//*         


TEST.MAIL.DETAILS

HELO DOMAIN-NAME                               
MAIL FROM:<XXXXXXXXXXXXXX@ABC.COM>     
RCPT TO:<XXXXXXXXXXXXXX@ABC.COM>       
DATA                                     
FROM:XXXXXXXXXXXXXX@ABC.COM           
TO:XXXXXXXXXXXXXX@ABC.COM             
CC:YYYYYYYYYYYYYY@ABC.COM               
SUBJECT:AUTOMATED MESSAGE FOR TESTING     
                                         
HI ALL,                                   
   THIS IS A TEST MAIL.                   
                                         
REGARDS,                                 
MAINFRAME TEAM.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jan 02, 2013 3:16 pm
Reply with quote

In SMTP, everything after the DATA line is not used for addressing the email. If you want to CC someone, you'll have to include information before the DATA line for them. If you don't know how to do this, Google RFC 2821 and start reading.

Whether or not the subject will be picked up depends upon your email client. You'll need to research that topic somewhere else since it is NOT a mainframe issue.
Back to top
View user's profile Send private message
Meenakshi Selvaraj

New User


Joined: 30 Oct 2009
Posts: 36
Location: Chennai

PostPosted: Wed Jan 02, 2013 4:34 pm
Reply with quote

Thanks Robert.
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 mail attachment with excel format All Other Mainframe Topics 2
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts How to append Previous date into a S... JCL & VSAM 2
No new posts Pack to Unpack conversion for sending... COBOL Programming 13
No new posts SARBCH PRINTJOB option not Works with... CA Products 4
Search our Forums:

Back to Top