View previous topic :: View next topic
|
Author |
Message |
Meenakshi Selvaraj
New User
Joined: 30 Oct 2009 Posts: 36 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Meenakshi Selvaraj
New User
Joined: 30 Oct 2009 Posts: 36 Location: Chennai
|
|
|
|
Thanks Robert. |
|
Back to top |
|
|
|