Page 1 of 1

Emailing to multiusers

PostPosted: Wed Jul 28, 2010 6:16 pm
by pahi
Hi,

I’m using the below JCL to send the emails to multiple recipients, but I found that only one email ID receives that content of mail. For example in the case shown below, the first mail id receives a blank mail whereas the second id receives the right content. Similarly with multiple mail IDs in the list the last one receives the right format with all the previous ones receiving blank mails.

Is it possible to have multiple email ids receive same email content using the below file format by changing REXX?


//EMAILSUP EXEC PGM=IKJEFT01,COND=(4,LT),PARM='MULTIREX'
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//SYSEXEC DD DSN=XXX.C.CLIST,DISP=SHR
// DD DSN=ABC.DEV.CLIST,DISP=SHR
//HEADER DD *
HELO TMVSK.TSL
MAIL FROM:<BBB@gmail.com>
RCPT TO:<CCC@gmail.com>
DATA
SUBJECT: Purchase Order Enquiry
MIME-VERSION: 1.0
CONTENT-TYPE: TEXT/HTML
//DETAILS DD DSN=TEST.MULTI.EMAIL,DISP=SHR
//TRAILER DD *
.
//HTML DD SYSOUT=(B,TCPSMTP)
//*TML DD SYSOUT=*
//*


file TEST.MULTI.EMAIL has the following email content

email: <aaa@GMAIL.COM>
email: <bbb@GMAIL.COM>
HI this is the email I wanted to send for aaa & bbb
end

email: <123@GMAIL.COM>
email: <456@GMAIL.COM>
email: <456@GMAIL.COM>
HI this is the email I wanted to send for 123 & 456 also 456
end


Regards,
Pahi

Re: Emailing to multiusers

PostPosted: Wed Jul 28, 2010 6:44 pm
by Robert Sample
You must have one RCPT TO: line for each email address to receive the email. Everything after the DATA may appear in various fields in the email (such as sender, CC:, etc) but does not affect the actual sender or actual recipients in any way.