|
|
| Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 135 Location: trichy
|
|
|
|
I tried to send a mail from mainframes using following JCL
//MAIL JOB (040T,1531),'SEND MAIL',CLASS=A,MSGCLASS=X,
// NOTIFY=&SYSUID
//STEP10 EXEC PGM=IEBGENER
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=DEV2.RK.TEST(SMAIL),DISP=SHR
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSIN DD DUMMY
TEXT FILE:
HELO XXXXXX
MAIL FROM:<KARTHIKEYAN.RAJARAM@COGNIZANT.COM>
RCPT TO:<KARTHIKEYAN.RAJARAM@COGNIZANT.COM>
DATA
TO: KARTHIKEYAN.RAJARAM@COGNIZANT.COM
SUBJECT: TEST MAIL
HI , THIS IS TEST MAIL
Here how to to find the server name for HELO.
I have no access to view SYS1.PARMLIB and also
entering command NODE in SDSF.
Is there any other way to find out?
Regards
R KARTHIK |
|
| Back to top |
|
 |
References
|
Posted: Fri Jun 20, 2008 7:21 pm Post subject: Re: How to to find the server name for HELO for sending mail? |
 |
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3097 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 135 Location: trichy
|
|
|
|
Hi kevin,
Thanks....I will check...... |
|
| Back to top |
|
 |
PeD
Active User
Joined: 26 Nov 2005 Posts: 268 Location: Belgium
|
|
|
|
run a small REXX with
JNODE = Sysvar('SYSNODE') |
|
| Back to top |
|
 |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 135 Location: trichy
|
|
|
|
HI Ped,
I got the SYSNODE from REXX.
When i run JCL it throws Maxcc=0 and after 2 seconds it throws
10.36.53 JOB56016 $HASP546 MAIL (JOB56016 FROM SYVT ) SYSTEM OUTPUT RECEIVED AT HDRN CN(INTERNAL)
***
But mail was was not received.
My JCL:
//MAIL JOB (040T,1531),'SEND MAIL',CLASS=A,MSGCLASS=X,
// NOTIFY=&SYSUID
//STEP10 EXEC PGM=IEBGENER
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=DEV2.RK.TEST(SMAIL),DISP=SHR
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSIN DD DUMMY
My TEST FILE:
HELO SYSC
MAIL FROM:<KARTHIKEYAN.RAJARAM@COGNIZANT.COM>
RCPT TO:<KARTHIKEYAN.RAJARAM@COGNIZANT.COM>
DATA
TO: KARTHIKEYAN.RAJARAM@COGNIZANT.COM
SUBJECT: TEST MAIL
HI , THIS IS TEST MAIL
I dont know where is the problem.... |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 356 Location: Atlanta, GA
|
|
|
|
Possibilities I see include:
1. Have you checked with your system folks on SYSOUT=(A,SMTP)? We use SYSOUT=(9,SMTP) where JES class 9 is held for external writer processing (SMTP).
2. Is there a spam filter on your system that could be filtering out your message?
3. Some mail systems won't deliver mail unless the sender is valid. HELO SYSC.<domain> is required for such systems so the reverse look up can find the sender. |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 356 Location: Atlanta, GA
|
|
|
|
| Additionally, checking your email I don't see the trailing period that is required by SMTP. If it's not there, try sending again with a period on a line by itself. |
|
| Back to top |
|
 |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 135 Location: trichy
|
|
|
|
| Robert Sample wrote: |
Possibilities I see include:
1. Have you checked with your system folks on SYSOUT=(A,SMTP)? We use SYSOUT=(9,SMTP) where JES class 9 is held for external writer processing (SMTP).
2. Is there a spam filter on your system that could be filtering out your message?
3. Some mail systems won't deliver mail unless the sender is valid. HELO SYSC.<domain> is required for such systems so the reverse look up can find the sender. |
Hi Robert,
How to find out the domain?
| Quote: |
Additionally, checking your email I don't see the trailing period that is required by SMTP. If it's not there, try sending again with a period on a line by itself. |
U mean to say that i have the input file like this,
HELO SYSC.
MAIL FROM:<KARTHIKEYAN.RAJARAM@COGNIZANT.COM>.
RCPT TO:<KARTHIKEYAN.RAJARAM@COGNIZANT.COM>.
DATA.
TO: KARTHIKEYAN.RAJARAM@COGNIZANT.COM.
SUBJECT: TEST MAIL.
HI , THIS IS TEST MAIL.
Placing dot in all lines..
[/quote] |
|
| Back to top |
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 356 Location: Atlanta, GA
|
|
|
|
No, you need a line with JUST a period on it. From RFC 2821:
| Quote: |
Since the mail data is sent on the transmission channel, the end of
mail data must be indicated so that the command and reply dialog can
be resumed. SMTP indicates the end of the mail data by sending a
line containing only a "." (period or full stop). A transparency
procedure is used to prevent this from interfering with the user's
text (see section 4.5.2).
|
As far as the domain, you might have to check with your systems folks. If you have access to the SMTP job running on your system, you can look at the OUTPUT DD statement to find the line
| Quote: |
| EZA5128I TCP Network Domain Name : MAINFRAME.******** |
but if you don't have access to this job you'll have to find it from your systems programmer. |
|
| Back to top |
|
 |
|
|