Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 8497
Location: Dubuque, Iowa, 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: 8497
Location: Dubuque, Iowa, 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 Send email without SMTP Kaliragavendran All Other Mainframe Topics 0 Thu Sep 05, 2019 10:55 am
No new posts IEBGENER to copy from FB to VB and re... Mike.Fulton All Other Mainframe Topics 3 Sat Aug 24, 2019 7:20 am
No new posts Using the SAS module to email mainfra... elixir1986 JCL & VSAM 3 Thu Mar 14, 2019 10:04 pm
No new posts Error in IEBGENER supriyo kumar JCL & VSAM 1 Thu Sep 27, 2018 10:22 pm
No new posts JCL to send email along with formated... wik123 JCL & VSAM 5 Thu Aug 09, 2018 9:48 am

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