IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to send email to multiple users


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nprathap4u

New User


Joined: 24 Apr 2007
Posts: 15
Location: India

PostPosted: Thu Sep 27, 2007 3:21 pm
Reply with quote

Any one knows how to send for multiple users...????
I want to send message for 5 users..
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 27, 2007 3:51 pm
Reply with quote

Yes, it can be done using the IKJEFT01 utility.

Just add the emails ID one after another in the control card.

Also search the forum as this has been discussed before.
Back to top
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Thu Sep 27, 2007 4:32 pm
Reply with quote

Prathap,

It looks as if you know how to send email to one user; try making a distribution list on your email client (for the 5 users you want the email to be sent to) and use that email-id in your JCL. icon_lol.gif

Nice and easy,
Twissi.
Back to top
View user's profile Send private message
nprathap4u

New User


Joined: 24 Apr 2007
Posts: 15
Location: India

PostPosted: Thu Sep 27, 2007 4:53 pm
Reply with quote

Thanks William.

But i couldnt find that forum.
could you please post that utility once again.

-regards
Prathap
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Sep 27, 2007 7:40 pm
Reply with quote

Hello,

You can send multiples using
Quote:
(some.one@somewhere.com -
some.oneelse@somewhere.else.com)
Just use parentheses and continuation(s).

Not sure why one shows as "link" - must be a feature of the board icon_smile.gif
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Sep 28, 2007 12:19 pm
Reply with quote

Quote:
nprathap4u
Using what utility you are trying to send email?
Back to top
View user's profile Send private message
jasveer singh

New User


Joined: 06 Mar 2006
Posts: 16

PostPosted: Sun Oct 14, 2007 3:40 pm
Reply with quote

Hi ,

Here is the JCL step to send the mail to multiple thru SMTP

//STEP001 EXEC PGM=IKJEFT01,
// DYNAMNBR=25,
// COND=(12,EQ)
//SYSTERM DD DUMMY
//SYSPROC DD DUMMY
//SYSTSIN DD *
XMIT WROC.SMTP DDNAME(XMITNOTE) NONOTIFY NOLOG
/*
//XMITNOTE DD *
HELO << region that supports SMTP>>
MAIL FROM: <user1@comp1.com>
RCPT TO: <user2@comp2.com>
RCPT TO: <user3@comp3.com>
DATA
FROM: <user1@comp1.com>
TO: <user2@comp2.com>
TO: <user2@comp2.com>

SUBJECT:
<< Message content >>

.
QUIT
/*
//SYSTSPRT DD SYSOUT=*
//SYSDBOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Oct 15, 2007 12:22 pm
Reply with quote

nprathap4u,

Use this if you are still facing the problem of sending mails to multiple user's.

Code:
//SEMAIL   EXEC PGM=IKJEFT01,                                     
//         DYNAMNBR=40,                                           
//         PARM='%SWMAIL &CYCL'                                   
//NOTE     DD DUMMY                                               
//PARMS    DD DSN=HLQ1.INFO(FROM),               
//         DISP=SHR                                               
//SYSPROC  DD DSN=YOUR.DATASET.NAME,                                   
//         DISP=SHR                                               
//SYSTSPRT DD SYSOUT=*                                             
//SYSPRINT DD SYSOUT=*                                             
//SYSTIN    DD DUMMY,DCB=BLKSIZE=80                               
//SYSTSIN  DD DUMMY,DCB=BLKSIZE=80                                 
//TO       DD DSN=HLQ1.INFO(TO),                   
//         DISP=SHR 



From control card: HLQ1.INFO(FROM)

Code:

SUBJECT="YOUR SUBJECT "                           
FROM=XYZ@ABC.COM


To control card: HLQ1.INFO(TO)

Code:
# RECIPIENTS:                     
MAILID_ONE@DOMAIN.COM       
MAILID_TWO@DOMAIN.COM       
MAILID_THREE@DOMAIN.COM       
MAILID_FOUR@DOMAIN.COM       
MAILID_FIVE@DOMAIN.COM 


Hope this helps. Else post your queries
Back to top
View user's profile Send private message
nprathap4u

New User


Joined: 24 Apr 2007
Posts: 15
Location: India

PostPosted: Mon Oct 15, 2007 3:30 pm
Reply with quote

Hi,

Thanks a lot..it worked fine.

regards,
Prathap
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Oct 15, 2007 4:24 pm
Reply with quote

Glad that i was able to help you icon_biggrin.gif
Back to top
View user's profile Send private message
Analyst

New User


Joined: 06 Apr 2007
Posts: 3
Location: Singapore

PostPosted: Tue Jan 22, 2008 6:00 am
Reply with quote

Ho Pratap & Aaru,

What is the SYSPROC dataset should contain?

SWMAIL access should be requested to TSO Administrator?

Could you please clarify..I am submitting the job but could not receive the mail,but rc=0
Back to top
View user's profile Send private message
purusothaman

New User


Joined: 17 Feb 2007
Posts: 39
Location: Chennai

PostPosted: Wed Jul 02, 2008 9:28 pm
Reply with quote

Is SWMAIL a third party tool?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts IBM OnDemand Folders displaying to al... IBM Tools 6
Search our Forums:

Back to Top