Email sending Problem
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 12
- Joined: Thu Dec 04, 2008 12:03 pm
- Location: MUMBAI
Email sending Problem
Hi all,
I have checked out many post on Email sending..
I am doing the same thing which menmtioned in others post..But
I am still facing issue in sending Email using IEBGENER-
below mentioned JCL Gives me MAXCC=0, but mail is not getting sending.
Please suggest..
JCL-
//SENDMAIL JOB (@),'SENDMAIL',
// CLASS=0,MSGCLASS=R,NOTIFY=&SYSUID
//******************************************************
//JS001 EXEC UCC11RMS
//******************************************************
//JS002 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=XXXXXXX.TEST.FILE1
//SYSUT2 DD SYSOUT=(B,SMTP)
and the contents of XXXXXXX.TEST.FILE1-
helo MVSHOST
MAIL FROM:<MVSUser@MVSHost.xyz.com>
RCPT To:<otheruser@pop3.xyz.com>
DATA
SUBJECT:Test mail.
This is a test mail
In above file--
At the place of MVSHOST i have tried-
1. domain name from mycomputer
2. IP address of system
At the place of -
MVSUser@MVSHost.xyz.com--
MVSuser- its mainframe User ID or anything else-
MVSHost.xyz.com- ??
At the place of
otheruser@pop3.xyz.com
otheruser--??
pop3.xyz.com---???
Please suggest wat should i write --
Please tell me with any example if it is possible--
or is there any other issue with my code..
Thanks
Vishal G
I have checked out many post on Email sending..
I am doing the same thing which menmtioned in others post..But
I am still facing issue in sending Email using IEBGENER-
below mentioned JCL Gives me MAXCC=0, but mail is not getting sending.
Please suggest..
JCL-
//SENDMAIL JOB (@),'SENDMAIL',
// CLASS=0,MSGCLASS=R,NOTIFY=&SYSUID
//******************************************************
//JS001 EXEC UCC11RMS
//******************************************************
//JS002 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=XXXXXXX.TEST.FILE1
//SYSUT2 DD SYSOUT=(B,SMTP)
and the contents of XXXXXXX.TEST.FILE1-
helo MVSHOST
MAIL FROM:<MVSUser@MVSHost.xyz.com>
RCPT To:<otheruser@pop3.xyz.com>
DATA
SUBJECT:Test mail.
This is a test mail
In above file--
At the place of MVSHOST i have tried-
1. domain name from mycomputer
2. IP address of system
At the place of -
MVSUser@MVSHost.xyz.com--
MVSuser- its mainframe User ID or anything else-
MVSHost.xyz.com- ??
At the place of
otheruser@pop3.xyz.com
otheruser--??
pop3.xyz.com---???
Please suggest wat should i write --
Please tell me with any example if it is possible--
or is there any other issue with my code..
Thanks
Vishal G
-
- Member
- Posts: 12
- Joined: Thu Dec 04, 2008 12:03 pm
- Location: MUMBAI
Contact your local mainframe support guys to get the MVSHOST name.......... or take any JESMSG and in top right most column you can see your MVSHOST name....
MVSHost.xyz.com- ?? it can be anything else.....
pop3.xyz.com---??? this should be valid mail id to whom your going to send the mail.............
MVSHost.xyz.com- ?? it can be anything else.....
pop3.xyz.com---??? this should be valid mail id to whom your going to send the mail.............
Senthil Kumar K
SYSUT2 writesin spool !!! how to avoid
when i use sysut2 dd sysout=(r,smtp) , this writes all the records in the flat file (attachment file) in spool ........... if i have 5000 lines in the attachment , all are written in spool....
how to avoid sysut2 from getting disllpayed in spool!!!! this is urgent,, pls reply
how to avoid sysut2 from getting disllpayed in spool!!!! this is urgent,, pls reply
1 - Do not piggy-back someone elses topic. a) it is rude b) your topic is not the same subject
2 - Do not ask for 'urgent' on a forum. The people who help are doing so in their spare time and without charge and if they feel like it. If you really need urgent then suggest you pay someone to come in and fix it for you.
3 - your best bet is your own support people - did you try them?
2 - Do not ask for 'urgent' on a forum. The people who help are doing so in their spare time and without charge and if they feel like it. If you really need urgent then suggest you pay someone to come in and fix it for you.
3 - your best bet is your own support people - did you try them?
Regards
Nic
Nic
-
- Member
- Posts: 15
- Joined: Thu Feb 23, 2012 6:55 am
Frederick
Are you replying to the guy who started this thread 3.6 years ago and seemed to have finished with the same day or are you re[lyiong to the guy who usurped the thread a few days ago? If the former I think you are far too late, if the latter why do you think 'junk values' would be causing a file to be written to sysout??
Are you replying to the guy who started this thread 3.6 years ago and seemed to have finished with the same day or are you re[lyiong to the guy who usurped the thread a few days ago? If the former I think you are far too late, if the latter why do you think 'junk values' would be causing a file to be written to sysout??
Regards
Nic
Nic
-
- Member
- Posts: 13
- Joined: Wed Mar 14, 2012 8:18 pm
Hello,
I tried the same as Vihshal did and got the same error. RC=0 but no email.
I came to the conclusion that my system doesnot have a enable SMTP service.
try this command
TSO SMSG SMTP STAT
it will say SMTP not logged in. and try on the system where u know it is enabled.
I tried with all the hostname as descibed above. thats called HANDSHAKE. but dint work. .
can some one help us further for the same. i heard about the XMITIP. can some one please help if SMTP is not available. or if my understanding is wrong then please correct me.
I tried the same as Vihshal did and got the same error. RC=0 but no email.
I came to the conclusion that my system doesnot have a enable SMTP service.
try this command
TSO SMSG SMTP STAT
it will say SMTP not logged in. and try on the system where u know it is enabled.
I tried with all the hostname as descibed above. thats called HANDSHAKE. but dint work. .
can some one help us further for the same. i heard about the XMITIP. can some one please help if SMTP is not available. or if my understanding is wrong then please correct me.
Thanks
Rajiv
Rajiv
-
- Member
- Posts: 13
- Joined: Wed Mar 14, 2012 8:18 pm
I agree with you. I talked to my mainframe guys and they enabled it.DikDude wrote:Suggest you talk with your system support people and learn what IS available (if anything).
If the organization has decided to NOT support this, the first order of business will be to convince "them" that there is a bisiness need to send e-mails.
so means it was not enabled and that was the reason it was not sending an email.
now i am able.
and this command responds me also now
TSO SMSG SMTP STAT
Thanks
Rajiv
Rajiv
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page