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 

How to send email?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> JCL/SORT
View previous topic :: View next topic  
Author Message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Nov 29, 2005 12:38 pm    Post subject: How to send email? Reply with quote

Is it possible to Send an E-Mail from Mainframe ???

Yes, It is possible to send a mail from mainframe to outside world. The simplest way is to use IEBGENER - with the help of SMTP. You can also use REXX to do this.

Code:

//STEP1    EXEC PGM=IEBGENER
//*
//SYSIN    DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT2   DD SYSOUT=(A,SMTP)
//SYSUT1   DD *
HELO SYSA
MAIL FROM:<KOLUSU@HOTMAIL.COM>
RCPT TO:<VIKRAM@HOTMAIL.COM>
DATA
FROM:      <KOLUSU@HOTMAIL.COM>
TO:         VIKRAM@HOTMAIL.COM
SUBJECT: file
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED;             
BOUNDARY=  "MYDELIM"
THIS MESSAGE IS IN MIME FORMAT
--MYDELIM
Content-Disposition: attachment; filename="YOUR ATTACH FILE.txt"
CONTENT-TYPE: TEXT/HTML
 <PRE> <FONT FACE="ARIAL" SIZE=1>
//          DD DISP=SHR,DSN=YOUR.PDS(MEMBER)
// DD *
--MYDELIM
.
quit
//*


Syntax of HELO Command - SMTP
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B910/6.9?DT=20010621083253

Sending mails Thro' REXX
http://www.mvsforums.com/helpboards/viewtopic.php?t=3051&highlight=rexx+mail++email

Related Links:
http://www.mvsforums.com/helpboards/viewtopic.php?t=439&highlight=jcl+email
http://www.mvsforums.com/helpboards/viewtopic.php?t=4827&highlight=rexx+mail++email

Sending mails with Attachment
http://www.mvsforums.com/helpboards/viewtopic.php?t=3223&highlight=jcl+email
http://www.mvsforums.com/helpboards/viewtopic.php?t=2667&highlight=jcl+email
http://www.mvsforums.com/helpboards/viewtopic.php?t=4236&highlight=jcl+email
http://www.mvsforums.com/helpboards/viewtopic.php?t=4089&highlight=jcl+email

Thanks,
Phantom
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 -> JCL/SORT All times are GMT - 5 Hours
Page 1 of 1

 
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