Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to to find the server name for HELO for sending mail?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to to find the server name for HELO for sending mail?
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

Moderator Team Head


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

PostPosted: Fri Jun 20, 2008 7:28 pm    Post subject: Reply to: How to to find the server name for HELO for sendin
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    Post subject: Reply to: How to to find the server name for HELO for sendin
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: 456
Location: Belgium

PostPosted: Fri Jun 20, 2008 7:53 pm    Post subject:
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    Post subject: Reply to: How to to find the server name for HELO for sendin
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jun 20, 2008 8:59 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jun 20, 2008 9:01 pm    Post subject:
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    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jun 23, 2008 4:52 pm    Post subject:
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    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 sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Technical Support Engineer (DB2 on z/... Kenneth Barton Lasky Mainframe Jobs 0 Fri Aug 25, 2017 12:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am

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