Send email to mutiple users



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

Send email to mutiple users

Postby mohit_rathi » Fri Aug 08, 2008 11:17 am

Hi,
I want to send email to multiple users, can any one give a sample jcl??
can i do that using iebgener?
Thanks,
Mohit
mohit_rathi
 
Posts: 5
Joined: Mon Jul 21, 2008 11:42 am
Has thanked: 0 time
Been thanked: 0 time

Re: Send email to mutiple users

Postby dick scherrer » Sat Aug 09, 2008 3:19 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Send email to mutiple users

Postby mohit_rathi » Mon Aug 11, 2008 11:19 am

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??
mohit_rathi
 
Posts: 5
Joined: Mon Jul 21, 2008 11:42 am
Has thanked: 0 time
Been thanked: 0 time

Re: Send email to mutiple users

Postby dick scherrer » Mon Aug 11, 2008 9:58 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Send email to mutiple users

Postby mohit_rathi » Thu Aug 14, 2008 12:37 pm

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.
mohit_rathi
 
Posts: 5
Joined: Mon Jul 21, 2008 11:42 am
Has thanked: 0 time
Been thanked: 0 time

Re: Send email to mutiple users

Postby dick scherrer » Fri Aug 15, 2008 12:47 am

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
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post