Email sending Problem

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
McaVishalGupta
Member
Posts: 12
Joined: Thu Dec 04, 2008 12:03 pm
Location: MUMBAI

Email sending Problem

Post by McaVishalGupta » Thu Jun 18, 2009 11:56 am

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

McaVishalGupta
Member
Posts: 12
Joined: Thu Dec 04, 2008 12:03 pm
Location: MUMBAI

Post by McaVishalGupta » Thu Jun 18, 2009 3:24 pm

Please suggest.

tsenthil1
Member
Posts: 1
Joined: Fri Jun 19, 2009 12:39 am

Post by tsenthil1 » Fri Jun 19, 2009 12:44 am

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.............
Senthil Kumar K

ppppp
Member
Posts: 1
Joined: Sat Feb 18, 2012 10:18 am

SYSUT2 writesin spool !!! how to avoid

Post by ppppp » Sat Feb 18, 2012 10:26 am

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

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Sun Feb 19, 2012 6:29 pm

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?
Regards
Nic

fredrick andrews
Member
Posts: 15
Joined: Thu Feb 23, 2012 6:55 am

Post by fredrick andrews » Mon Feb 27, 2012 10:39 am

McaVishalGupta,

I'm pretty sure that this is due to lowvalues / junk in your files.
Remove them and try it.
It will work.


Thanks! :D

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon Feb 27, 2012 11:05 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??
Regards
Nic

mainframes.rajiv
Member
Posts: 13
Joined: Wed Mar 14, 2012 8:18 pm

Post by mainframes.rajiv » Wed Mar 14, 2012 9:34 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.
Thanks
Rajiv

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sun Mar 18, 2012 9:38 am

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.
Have a good one

mainframes.rajiv
Member
Posts: 13
Joined: Wed Mar 14, 2012 8:18 pm

Post by mainframes.rajiv » Fri Mar 23, 2012 10:29 am

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.
I agree with you. I talked to my mainframe guys and they enabled it.
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

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Mar 23, 2012 8:11 pm

Good to hear it is now working - thank you for the followup :)

dd

Post Reply

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



Other References
Mainframe Tools and others