|
View previous topic :: View next topic
|
| Author |
Message |
shailen
New User
Joined: 27 Mar 2004 Posts: 22
|
|
|
|
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:<[email protected]>
RCPT TO:<YOUR@YOURMAILCOM>
DATA
FROM: [email protected]
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 |
|
 |
nirmal.poikaikumaran
New User

Joined: 29 Nov 2005 Posts: 66 Location: Bangalore
|
|
|
|
hi shailen,
i tried the same mailing step with two minor changes and i received the mail...
Change 1
----------
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 |
|
 |
shailen
New User
Joined: 27 Mar 2004 Posts: 22
|
|
|
|
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 |
|
 |
nirmal.poikaikumaran
New User

Joined: 29 Nov 2005 Posts: 66 Location: Bangalore
|
|
|
|
Hi Shailen
its great to hear that it worked .....cool
Keep posted...have a nice day |
|
| Back to top |
|
 |
gblpathi
New User
Joined: 29 Dec 2005 Posts: 1 Location: Chennai
|
|
|
|
Hi,
| Code: |
//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO domain.name
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
TO:<[email protected]>
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 |
|
 |
nirmal.poikaikumaran
New User

Joined: 29 Nov 2005 Posts: 66 Location: Bangalore
|
|
|
|
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 |
|
 |
sairam
New User
.jpg)
Joined: 30 Aug 2005 Posts: 58 Location: Kolkata
|
|
|
|
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 |
|
 |
Paddy
New User

Joined: 12 Sep 2005 Posts: 46 Location: Paris France
|
|
|
|
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 |
|
 |
mrar_160
New User

Joined: 14 Sep 2005 Posts: 48
|
|
|
|
| may i know, the IP address is belonging the recepient's server IP or sender's server IP? |
|
| Back to top |
|
 |
mrar_160
New User

Joined: 14 Sep 2005 Posts: 48
|
|
|
|
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:<[email protected]>
RCPT TO:<[email protected]>
DATA
TO:<[email protected]>
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 |
|
 |
sairam
New User
.jpg)
Joined: 30 Aug 2005 Posts: 58 Location: Kolkata
|
|
|
|
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:<[email protected]>
RCPT TO:<[email protected]>
DATA
TO:<[email protected]>
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 |
|
 |
Rameshs
New User
Joined: 15 Jun 2005 Posts: 53 Location: India, Chennai
|
|
|
|
Hi,
How to find the IP Address of a mail server ?
For E.g Ip address of mail.yahoo.com ? |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
From this document: www.planetmvs.com/mvsmail/
| 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".
"[email protected]" to valid destination SMTP e-mail address
"[email protected]" to a valid TSO user and host
|
|
|
| Back to top |
|
 |
miosne Warnings : 1 New User
Joined: 13 Mar 2006 Posts: 63 Location: italy
|
|
| Back to top |
|
 |
Aaru
Senior Member

Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
miosne,
You are replying to a 2 year old topic.
Yes, that should be a valid user ID. say u r working in XYZ mainframes then it would normally be [email protected] |
|
| Back to top |
|
 |
miosne Warnings : 1 New User
Joined: 13 Mar 2006 Posts: 63 Location: italy
|
|
|
|
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 |
|
 |
Aaru
Senior Member

Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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
[email protected]. |
|
| Back to top |
|
 |
|
|