Page 1 of 1

Send email to mutiple users

PostPosted: Fri Aug 08, 2008 11:17 am
by mohit_rathi
Hi,
I want to send email to multiple users, can any one give a sample jcl??
can i do that using iebgener?
Thanks,
Mohit

Re: Send email to mutiple users

PostPosted: Sat Aug 09, 2008 3:19 am
by dick scherrer
Hello Mohit and welcoem to the forums,

Suggest you talk with your e-mail or network support people for the acceptable way to do this on your system.

Some organizations prohibit sending e-mail from the mainframe.

I use XMITIP to send e-mail to multiple recipients rather than IEBGENER.

Re: Send email to mutiple users

PostPosted: Mon Aug 11, 2008 11:19 am
by mohit_rathi
Hi Dick,
Thanks for reply. I have got a job by googling... and it worked..
in that job, there is a line..
HELO <ABCD> abcd --- domain name...
Can you tell me what does this HELO mean??

Re: Send email to mutiple users

PostPosted: Mon Aug 11, 2008 9:58 pm
by dick scherrer
Hello (not helo<g>),

HELO is how the mail client "greets" the mail server. If is the first part of the dialog between the main server and the client. Once the server has been identified and acknowledges the client, the conversaton continues.

If you post your jcl and email control statements, it may help if there are more questions as you continue.

Re: Send email to mutiple users

PostPosted: Thu Aug 14, 2008 12:37 pm
by mohit_rathi
HELO Dick :)
Thanks for the reply.
below is the Jcl i have used for sending mail

//STEP040 EXEC PGM=IEBGENER,COND=(00,NE)
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO MAIL /*mail here cud be any thing*/
MAIL FROM: <USERNAME@DOMAIN.COM>
RCPT TO: <USERNAME1@DOMAIN.COM>
RCPT TO: <USERNAME2@DOMAIN.COM>
RCPT TO: <USERNAME3@DOMAIN.COM>
DATA
TO: USERNAME1@DOMAIN.COM; USERNAME2@DOMAIN.COM
CC: USERNAME3@DOMAIN.COM
SUBJECT: Test mail Da
<mail body>
/*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//*


And user shud make sure that there are no aguments after DATA, TO and CC userlist, remove the sequence numbers from the pds member, coz those number will also be treated as arguments.

Thanks again Dick.
Hope the above info wud be helpful.

Re: Send email to mutiple users

PostPosted: Fri Aug 15, 2008 12:47 am
by dick scherrer
You're welcome :)

Hope the above info wud be helpful.

Thank you for posting the jcl you have used - yes, it will surely help others who also want to do this.

d