View previous topic :: View next topic
|
Author |
Message |
Prabh_Xansa
New User
Joined: 17 Oct 2008 Posts: 8 Location: Noida
|
|
|
|
Hi
I need to send a Report to multiple Suppliers from Mainframe with different subject for each supplier using single JCL.
I know the syntax of sending the mail to multiple supplier with same subject.
Prabhjot Singh |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
afaik, you'll have to send a different email for every different subject. |
|
Back to top |
|
|
Prabh_Xansa
New User
Joined: 17 Oct 2008 Posts: 8 Location: Noida
|
|
|
|
Hi
But In Case I need to Send Email to 1000 Supplier. Is there any alternative way. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
whoever You are sending emails ( supplier or clients ) it does not make any difference
if something in the email text/subject is different
than the thing is unique so you do not have alternatives
the only thing You can look after is how to generate them programmatically
in order to save some jcl/data handling |
|
Back to top |
|
|
Prabh_Xansa
New User
Joined: 17 Oct 2008 Posts: 8 Location: Noida
|
|
|
|
How we programically do the same task. Any hint |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Use a programming language to generate each email with the addressee and subject line you want and ship them off to your SMTP process. |
|
Back to top |
|
|
Prabh_Xansa
New User
Joined: 17 Oct 2008 Posts: 8 Location: Noida
|
|
|
|
Hi Rob
In that case i need to create as many different dataset for each addresse & subject Or i will dynamically submit the task for each addresse one bye one..
Can you please provide some example code for the same.
With Regards
Prabhjot |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Actually, you can use just one data stream and put all the data into it. Follow the usual syntax ... each HELO through the trailing period is treated by SMTP as a separate email and processed separately.
You might want to discuss this with your systems support people first. We have an application blasting 3,000 emails through SMTP once a month. We set up a different SMTP for the application to use since the 3,000 emails slowed down all the other applications sending email by several hours (SMTP is not a speedy process). |
|
Back to top |
|
|
Prabh_Xansa
New User
Joined: 17 Oct 2008 Posts: 8 Location: Noida
|
|
|
|
Thanx alot...I think i got they way now.... |
|
Back to top |
|
|
rakesha.hg
Active User
Joined: 21 Mar 2008 Posts: 161 Location: bangalore
|
|
|
|
hi,
Can you please tell th forum ... the way your approaching
i've a similar requirement(am new to this email stuff ..)
i'm reasearching for this requirement! |
|
Back to top |
|
|
Prabh_Xansa
New User
Joined: 17 Oct 2008 Posts: 8 Location: Noida
|
|
|
|
For sending Email to Multiple people with different matter. You need to programically handle this.
Generally for sending Email to Single user, your mail header part consist of following matter
HELO
MAIL FROM: <VALID EMAILID >
RCPT TO: <VALID EMAILID>
DATA
FROM: COMPANY ABC
TO: <VALID EMAILID>
SUBJECT: PROBLEM IN STORE NUMBER ..
MAIN MATTER
.
In case you need to send mail to multiple users, you have to generate the above matter dynamically in program again & again with different details.
HELO
MAIL FROM: <VALID EMAILID >
RCPT TO: <VALID EMAILID>
DATA
FROM: COMPANY ABC
TO: <VALID EMAILID>
SUBJECT: PROBLEM IN STORE NUMBER ..
MAIN MATTER
.
HELO
MAIL FROM: <VALID EMAILID >
RCPT TO: <VALID EMAILID>
DATA
FROM: COMPANY ABC
TO: <VALID EMAILID>
SUBJECT: PROBLEM IN STORE NUMBER ..
MAIN MATTER
.
.....
Then Include this dataset in the PROC/JCL containing STMP protocol as HEADER Data Set.
//COPY1 EXEC PGM=ICEGENER
//SYSUT1 DD DSN=HEADER DATA SET,DISP=SHR
// DD DSN=TRAILER DATA SET,DISP=SHR
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//* |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
The SYSOUT=(B,SMTP) will depend upon the JES specifications for your site. Class B is not always the class to use -- we use 9, for example. And the name of the SMTP address space must be the second parameter. |
|
Back to top |
|
|
|