Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Mail through JCL works, but not sending mail

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
shailen

New User


Joined: 27 Mar 2004
Posts: 22

PostPosted: Mon Dec 05, 2005 2:11 pm    Post subject: Mail through JCL works, but not sending mail
Reply with quote

Hi,

This is the JCL coding I?m using for generating mail. Not sure why it is not working. I tried all options, I can. The job runs fine but other end it doesn't generate.

I'm not sure... Can you have a look with your suggestions.

Regds
Shailen

Code:
                     
//SENDNOTE EXEC PGM=IEBGENER                           
//SYSIN    DD DUMMY                                     
//SYSUT1   DD *                                         
HELO IEFSSxx                                           
MAIL FROM:<MY@MYMAIL.COM>                   
RCPT TO:<YOUR@YOURMAILCOM>                     
DATA                                                   
FROM:     MY@MYMAIL.COM
TO:       YOUR@YOURMAILCOM
SUBJECT:  TEST MESSAGE FROM MVS USING SMTP             
THIS IS A LINE IN THE BODY OF THE NOTE.                 
/*                                                     
//SYSUT2   DD SYSOUT=(B,SMTP)                           
//SYSOUT   DD SYSOUT=*                                 
//SYSPRINT DD SYSOUT=*
//
Back to top
View user's profile Send private message

nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Mon Dec 05, 2005 6:34 pm    Post subject:
Reply with quote

hi shailen,

i tried the same mailing step with two minor changes and i received the mail...

Change 1
----------
Code:
HELO domain.name                                                       
MAIL FROM:<MY@MYMAIL.COM>                                     
RCPT TO:<YOUR@YOURMAIL.COM>                             
DATA                                                                 
TO:<YOUR@YOURMAIL.COM>
SUBJECT: TEST MESSAGE                                                         
                                                                     
THIS IS A LINE IN THE BODY OF THE NOTE


here remove the FROM below the DATA key word and try.

Change 2
-----------

Please save the above mentioned code part in a dataset and in

JCL try like this

Code:
//SYSUT2       DD  SYSOUT=K,DEST=TCPSMTP



Please try the same and let me know in case of any concerns..
Back to top
View user's profile Send private message
shailen

New User


Joined: 27 Mar 2004
Posts: 22

PostPosted: Tue Dec 06, 2005 8:00 pm    Post subject: Re: Mail through JCL
Reply with quote

Hi Nirmal,

For domain.name, finally I gave the IP of the buissnes and it worked fine.

Thanks a lot

Regds,
Shailen
Back to top
View user's profile Send private message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Wed Dec 07, 2005 9:29 am    Post subject:
Reply with quote

Hi Shailen


its great to hear that it worked .....cool


Keep posted...have a nice day
Back to top
View user's profile Send private message
gblpathi

New User


Joined: 29 Dec 2005
Posts: 1
Location: Chennai

PostPosted: Thu Dec 29, 2005 12:56 pm    Post subject: Re: Mail through JCL
Reply with quote

Hi,
Code:

//SENDNOTE EXEC PGM=IEBGENER                           
//SYSIN    DD DUMMY                                     
//SYSUT1   DD * 
HELO domain.name                                                       
MAIL FROM:<MY@MYMAIL.COM>                                     
RCPT TO:<YOUR@YOURMAIL.COM>                             
DATA                                                                 
TO:<YOUR@YOURMAIL.COM>
SUBJECT: TEST MESSAGE                                                         
                                                                     
THIS IS A LINE IN THE BODY OF THE NOTE
//SYSUT2       DD  SYSOUT=K,DEST=TCPSMTP
//*SYSUT2   DD SYSOUT=(B,SMTP)                           
//SYSOUT   DD SYSOUT=*                                 
//SYSPRINT DD SYSOUT=*
//


What is mean by domain name? And i pasted the code i used,but i didn't get any mail. Is ther any error in code, please let me know. Please clarify my doubts.
Back to top
View user's profile Send private message
nirmal.poikaikumaran

New User


Joined: 29 Nov 2005
Posts: 66
Location: Bangalore

PostPosted: Thu Dec 29, 2005 3:40 pm    Post subject:
Reply with quote

hey Gblpathi

did u use ur actual domain name or an ip address at the place of DOMAIN.NAME?

if you do that it will work

try and let me know
Back to top
View user's profile Send private message
sairam

New User


Joined: 30 Aug 2005
Posts: 58
Location: Kolkata

PostPosted: Thu Dec 29, 2005 7:06 pm    Post subject:
Reply with quote

I also failed to get mail.I tried both IP address and Domain name.
is it the IP address getting from LAN setting and domain name from properties of 'My Computer'.And also another question :- Is mail from
is optional or a valid address?
Back to top
View user's profile Send private message
Paddy

New User


Joined: 12 Sep 2005
Posts: 46
Location: Paris France

PostPosted: Thu Dec 29, 2005 7:23 pm    Post subject:
Reply with quote

Hi sairan,


MAIL FROM must be a valid address, because it can be cheked by RACF or SMTP security table.


Regards

Paddy.
Back to top
View user's profile Send private message
mrar_160

New User


Joined: 14 Sep 2005
Posts: 48

PostPosted: Fri Dec 30, 2005 7:03 am    Post subject:
Reply with quote

may i know, the IP address is belonging the recepient's server IP or sender's server IP?
Back to top
View user's profile Send private message
mrar_160

New User


Joined: 14 Sep 2005
Posts: 48

PostPosted: Fri Dec 30, 2005 7:08 am    Post subject:
Reply with quote

When i submit, i got this msg..
Quote:
DATA SET UTILITY - GENERATE
IEB352I WARNING : OUTPUT RECFM/LRECL/BLKSIZE COPIED FROM INPUT

PROCESSING ENDED AT EOD


My JCL looks like this..
Code:

//PEP1001F JOB 090000,CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID,               
//         REGION=3072K                                               
//*                                                                   
//SENDNOTE EXEC PGM=IEBGENER                                           
//SYSIN    DD DUMMY                                                   
//SYSUT1   DD *                                                       
HELO 66.94.230.34         *YAHOO IP                                             
MAIL FROM:<MRAR_160@YAHOO.COM>                                         
RCPT TO:<USER@XYZ.COM.MY>                           
DATA                                                                   
TO:<USER@XYZ.COM.MY>                                 
SUBJECT: TEST MESSAGE                                                 
                                                                       
THIS IS A LINE IN THE BODY OF THE NOTE                                 
/*                                                                     
//SYSUT2   DD  SYSOUT=K,DEST=TCPSMTP                                   
//SYSOUT   DD SYSOUT=*                                                 
//SYSPRINT DD SYSOUT=*                                                 
Back to top
View user's profile Send private message
sairam

New User


Joined: 30 Aug 2005
Posts: 58
Location: Kolkata

PostPosted: Fri Dec 30, 2005 1:09 pm    Post subject:
Reply with quote

i am also getting same error
Quote:
DATA SET UTILITY - GENERATE
IEB352I WARNING: ONE OR MORE OF THE OUTPUT DCB PARMS COPIED FROM INPUT


and my jcl is
Code:

//U125692M JOB (MAIL),'NAME',MSGCLASS=X,MSGLEVEL=(1,1),CLASS=D,
//         REGION=5M,NOTIFY=&SYSUID                             
//SENDNOTE EXEC PGM=IEBGENER                                   
//SYSIN    DD DUMMY                                             
//SYSUT1   DD *                                                 
HELO 10.236.145                                                 
MAIL FROM:<SAIRAM_B11@YAHOOMAIL.COM>                           
RCPT TO:<SAIRAM.BEHERA@COGNIZANT.COM>                           
DATA                                                           
TO:<SAIRAM.BEHERA@COGNIZANT.COM>                               
SUBJECT: TEST MESSAGE                                           
                                                               
THIS IS A LINE IN THE BODY OF THE NOTE                         
//SYSUT2       DD  SYSOUT=K,DEST=TCPSMTP                       
//*SYSUT2   DD SYSOUT=(B,SMTP)                                 
//SYSOUT   DD SYSOUT=*                                         
//SYSPRINT DD SYSOUT=*
Back to top
View user's profile Send private message
Rameshs

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Fri Dec 30, 2005 6:03 pm    Post subject: Ip Address
Reply with quote

Hi,

How to find the IP Address of a mail server ?

For E.g Ip address of mail.yahoo.com ?
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Fri Dec 30, 2005 7:05 pm    Post subject:
Reply with quote

From this document: http://www.planetmvs.com/mvsmail/

Code:

//SENDNOTE EXEC PGM=IEBGENER
//SYSIN    DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2   DD SYSOUT=(B,SMTP)
//SYSUT1   DD *
helo MVSHOST
mail from:<MVSUser@MVSHost.xyz.com>
rcpt to:<unixuser@pop3.xyz.com>
data
From:     MVSUser@MVSHost.xyz.com
To:       unixuser@pop3.xyz.com
Subject:  Test message from MVS using SMTP

This is a line in the body of the note.

Quote:

You will need to change:

"MVSHOST" (on the "helo MVSHOST" line) must match the JES Node name for your system as defined in your 'SYS1.PARMLIB(IEFSSNxx)' for the VMCF subsystem. If you are a JES2 site, look at any JES2 job log for the node name at the top after "N O D E".
"unixuser@pop3.xyz.com" to valid destination SMTP e-mail address
"MVSuser@MVSHost.xyz.com" to a valid TSO user and host
Back to top
View user's profile Send private message
miosne
Warnings : 1

New User


Joined: 13 Mar 2006
Posts: 63
Location: italy

PostPosted: Wed Nov 28, 2007 4:27 pm    Post subject: what did you mean...
Reply with quote

with "MVSuser@MVSHost.xyz.com" to a valid TSO user and host ???
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Nov 28, 2007 4:47 pm    Post subject: Reply to: Mail through JCL works, but not sending mail
Reply with quote

miosne,

You are replying to a 2 year old topic.

Quote:
with "MVSuser@MVSHost.xyz.com" to a valid TSO user and host ???


Yes, that should be a valid user ID. say u r working in XYZ mainframes then it would normally be username@XYZ.com
Back to top
View user's profile Send private message
miosne
Warnings : 1

New User


Joined: 13 Mar 2006
Posts: 63
Location: italy

PostPosted: Wed Nov 28, 2007 5:07 pm    Post subject: I know
Reply with quote

but I don't understand, A VALID USER ID I'm logged in my mvs with ENSI012 so I would ask how can I substitute xyz (@gmail.com???)

Regards.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Nov 28, 2007 5:19 pm    Post subject: Reply to: Mail through JCL works, but not sending mail
Reply with quote

miosne,

Quote:
but I don't understand, A VALID USER ID I'm logged in my mvs with ENSI012 so I would ask how can I substitute xyz (@gmail.com???)


Your recepient mail id can be a gmail id(any domain) but the FROM ID should be a valid one.

Say if u are working for a company XYZ and using their mainframes, then you can mail using the email id provided to you by them. e.g
ENSI012@XYZ.com.
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 Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts How Adabas works in Mainframe ranujn Java & MQSeries 5 Sat Jun 04, 2016 11:20 am
No new posts How to sending system service request... lind sh IMS DB/DC 5 Sun Apr 10, 2016 12:02 am
No new posts Issue in sending zip file as mail att... ajithajt JCL & VSAM 8 Thu Apr 07, 2016 9:11 am
No new posts Sending system service calls by AIBTDLI. lind sh IMS DB/DC 1 Wed Mar 16, 2016 6:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us