//MAILJOB JOB NOTIFY=&SYSUID
//S1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO ABC
MAIL FROM: <YOU@N1.XYZ.COM>
RCPT TO: <ABC@YAHOO.COM>
DATA
TO: <ABC@YAHOO.COM>
FROM: "FRED"<YOU@N1.XYZ.COM>
SUBJECT: HELLO
THIS IS A TEST MAIL.
/*
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//*
If I submit the above program it is sending a mail to ABC@YAHOO.COM from id YOU@N1.XYZ.COM.
But if I delete the below three lines
HELO ABC
MAIL FROM: <YOU@N1.XYZ.COM>
RCPT TO: <ABC@YAHOO.COM>
I am not able to receive the mail... Could anyone please let me know what is the use of the
below 3 lines...