View previous topic :: View next topic
|
Author |
Message |
parasmalik20
New User
Joined: 01 Jun 2016 Posts: 9 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
parasmalik20
New User
Joined: 01 Jun 2016 Posts: 9 Location: India
|
|
|
|
Thanks , Robert.
I will do so. |
|
Back to top |
|
|
parasmalik20
New User
Joined: 01 Jun 2016 Posts: 9 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear you got it working. |
|
Back to top |
|
|
|