Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Mail through JCL works, but not sending subject

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Mail through JCL works, but not sending subject
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jan 02, 2013 3:16 pm    Post subject:
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    Post subject: Reply to: Mail through JCL works, but not sending subject
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    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 sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am
No new posts Mail via SMTP with an image? Mike 1304 JCL & VSAM 4 Thu Jan 26, 2017 2:01 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts How Adabas works in Mainframe ranujn Java & MQSeries 5 Sat Jun 04, 2016 11:20 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us