IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to to find the server name for HELO for sending mail?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 7:21 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jun 20, 2008 7:28 pm
Reply with quote

Have you reviewed this document?
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 7:45 pm
Reply with quote

Hi kevin,

Thanks....I will check......
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Fri Jun 20, 2008 7:53 pm
Reply with quote

run a small REXX with

JNODE = Sysvar('SYSNODE')
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Jun 20, 2008 8:09 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 20, 2008 8:59 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 20, 2008 9:01 pm
Reply with 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.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Mon Jun 23, 2008 12:43 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jun 23, 2008 4:52 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts mail attachment with excel format All Other Mainframe Topics 2
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
Search our Forums:

Back to Top