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

Mail through JCL works, but not sending mail


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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
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
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
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
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
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
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
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

Global Moderator


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

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

From this document: 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
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: 1287
Location: Chennai, India

PostPosted: Wed Nov 28, 2007 4:47 pm
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
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: 1287
Location: Chennai, India

PostPosted: Wed Nov 28, 2007 5:19 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts mail attachment with excel format All Other Mainframe Topics 2
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts How to append Previous date into a S... JCL & VSAM 2
No new posts Pack to Unpack conversion for sending... COBOL Programming 13
No new posts SARBCH PRINTJOB option not Works with... CA Products 4
Search our Forums:

Back to Top