Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
EMAIL using IEBGENER - SMTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
parasmalik20

New User


Joined: 01 Jun 2016
Posts: 9
Location: India

PostPosted: Tue May 23, 2017 12:19 am    Post subject: EMAIL using IEBGENER - SMTP
Reply with quote

Hi All,

I am trying to email using IEBGENER and it is working fine, the only problem
is the person in CC is not receving email.

Any pointers to resolve this ?

//STEP03 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSUT1 DD DSN=ABC.XYZ,DISP=SHR

ABC.XYZ -->

HELO SYSA
MAIL FROM:<XYZ@XYZ.COM>
RCPT TO: <XYZ@XYZ.COM>
DATA
FROM: <XYZ@XYZ.COM>
TO: <XYZ@XYZ.COM>
CC: <ABC@XYZ.COM>
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8188
Location: East Dubuque, Illinois, USA

PostPosted: Tue May 23, 2017 12:37 am    Post subject: Reply to: EMAIL using IEBGENER - SMTP
Reply with quote

Read RFC 2821 to find out the details of what you can -- and cannot -- do in SMTP. Specifically, if you want someone to receive the email, you MUST include them in the RCPT TO: addresses. Anything after the DATA is considered part of the email itself, so merely putting CC: like you did means the email client may interpret that as indicating a CC was done, but without the RCPT TO: there was no copy sent to that person. This is listed in Appendix B.1 on page 70 of the RFC.
Back to top
View user's profile Send private message
parasmalik20

New User


Joined: 01 Jun 2016
Posts: 9
Location: India

PostPosted: Tue May 23, 2017 12:52 am    Post subject: EMAIL using IEBGENER - SMTP
Reply with quote

Thanks , Robert.

I will do so.
Back to top
View user's profile Send private message
parasmalik20

New User


Joined: 01 Jun 2016
Posts: 9
Location: India

PostPosted: Tue May 23, 2017 6:03 pm    Post subject: Re: Reply to: EMAIL using IEBGENER - SMTP
Reply with quote

Robert Sample wrote:
Read RFC 2821 to find out the details of what you can -- and cannot -- do in SMTP. Specifically, if you want someone to receive the email, you MUST include them in the RCPT TO: addresses. Anything after the DATA is considered part of the email itself, so merely putting CC: like you did means the email client may interpret that as indicating a CC was done, but without the RCPT TO: there was no copy sent to that person. This is listed in Appendix B.1 on page 70 of the RFC.


I was able to send email after reading the document.

Thank you.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8188
Location: East Dubuque, Illinois, USA

PostPosted: Tue May 23, 2017 6:35 pm    Post subject: Reply to: EMAIL using IEBGENER - SMTP
Reply with quote

Glad to hear you got it working.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 4 Sun Nov 19, 2017 7:59 pm
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Adding a userid to SMTP Security table Yolanda Harvey JCL & VSAM 1 Sun Aug 13, 2017 6:16 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Mail via SMTP with an image? Mike 1304 JCL & VSAM 4 Thu Jan 26, 2017 2:01 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us