MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sending a mail with attachment using XMIT
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Thu Sep 30, 2004 5:03 am    Post subject: Reply with quote

whizkid79,

Please check this link for a detailed explanation of HELO Command--Identify the Domain Name of the Sending Host to SMTP

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B910/6.9?DT=20010621083253

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dinamo80
Beginner


Joined: 24 Nov 2004
Posts: 4
Topics: 0

PostPosted: Wed Nov 24, 2004 5:18 am    Post subject: Reply with quote

Hi to all,

I have this problem on e-mail sending.
I have to send different texts to different e-mail adresses in a unique session (i.e. using a unique SYSUT1 dataset), but I dont know if this is possible and - in affirmative case - how.

Can you help me?

Thank you in advance.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Wed Nov 24, 2004 9:04 am    Post subject: Reply with quote

dinamo80,

You can you different step for each user depending on the text.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dinamo80
Beginner


Joined: 24 Nov 2004
Posts: 4
Topics: 0

PostPosted: Thu Nov 25, 2004 5:26 am    Post subject: Reply with quote

kolusu wrote:
dinamo80,

You can you different step for each user depending on the text.

Kolusu
Hi Kolusu,

excuse me if I ask You an explanation another time. I should send n e-mailscontaining n different text to n recipients, but using only 1 IEBGENER processing. Could you suggest me SYSUT1 structure for my requirement ?

I tried with structure below but I failed ...

HELO MVS
MAIL FROM:<a.ao
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Thu Nov 25, 2004 10:33 am    Post subject: Reply with quote

dinamo80,


It is very simple . Just code one step for each text messsage

ex:
Code:

//STEP0100 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN    DD DUMMY
//SYSUT1   DD *
HELO SYSA
MAIL FROM: <KOLUSU@MVSFORUMS.COM>
RCPT TO:   <dinamo80@HOST.COM>
DATA
FROM: Complete name of sender
TO: Complete name of adressee
SUBJECT: The Subject
REPLY-TO: reply@host.com
YOUR text1
.
QUIT
//SYSUT2   DD SYSOUT=(A,SMTP)
/*
//STEP0200 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN    DD DUMMY
//SYSUT1   DD *
HELO SYSA
MAIL FROM: <KOLUSU@MVSFORUMS.COM>
RCPT TO:   <dinamo80@HOST.COM>
DATA
FROM: Complete name of sender
TO: Complete name of adressee
SUBJECT: The Subject
REPLY-TO: reply@host.com
YOUR text2
.
QUIT
//SYSUT2   DD SYSOUT=(A,SMTP)


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dinamo80
Beginner


Joined: 24 Nov 2004
Posts: 4
Topics: 0

PostPosted: Fri Nov 26, 2004 6:05 am    Post subject: Reply with quote

Hi Kosulu,
thank you for your suggest! Now I've another problem. Imagine that I have to send different e-mails depending on the result standing on a file resulting from a previous processing. So I could have to send 3 different e-mails to a, b, c one day, but another day I 'd send 7 different e-mails to b,d, x,y,z,w,k ... so the nr. of steps is different depending on the context.

In an other e-mail environment I send different e-mails creating a dataset with caracteristics below, and running a unique JCL step.


)SEND
TITLE xxxxxxx
DEST yyyyyyy


Text1


)END


)SEND
TITLE xxxxxxx
DEST zzzzzzzz


Text2


)END

and so son...


I hope in your powerrful help.

Thank you in advance.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12399
Topics: 75
Location: San Jose

PostPosted: Mon Nov 29, 2004 9:37 am    Post subject: Reply with quote

Quote:

In an other e-mail environment I send different e-mails creating a dataset with caracteristics below, and running a unique JCL step.


dinamo80,

You can do the same with SMTP also. Generate one file with all the emails with a delimiter . and you can send multiple emails to multiple ID's within a single step.

ex:

Code:


HELO SYSA                                           
MAIL FROM: <KOLUSU@MVSFORUMS.COM>   
RCPT TO: <EMAIL-RECEIPENT-1@HOST.COM>                           
DATA                                               
TO: <EMAIL-RECEIPENT-1@HOST.COM>
SUBJECT:Test email-1.                               
my subject -1                                       
.                                                   
HELO SYSA                                           
MAIL FROM: <KOLUSU@MVSFORUMS.COM>   
RCPT TO: <EMAIL-RECEIPENT-2@HOST.COM>                           
DATA                                               
TO: <EMAIL-RECEIPENT-2@HOST.COM>
SUBJECT:Test email-2.                               
my subject -2                                       
.                                                   
QUIT         


SMTP seperates these 2 mails delimiting the mail by . (period or fullstop)

Now use the above created file as SYSUT1 and send the mail to multiple id's

Code:

//STEP0100 EXEC PGM=IEBGENER     
//SYSPRINT DD SYSOUT=*           
//SYSUT1   DD DSN=YOUR MULTIPLE EMAIL FILE,
//            DISP=SHR
//SYSUT2   DD SYSOUT=B,DEST=SMTP
//SYSIN    DD DUMMY             


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dinamo80
Beginner


Joined: 24 Nov 2004
Posts: 4
Topics: 0

PostPosted: Mon Nov 29, 2004 10:22 am    Post subject: Reply with quote

Thank you Kosulu, you're great!

I tried immediately your suggest, it worked perfectly! This is what I need !

Thank you again!

Massimo (Italy)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group