Page 1 of 2

Send email through mainframe

PostPosted: Wed Sep 19, 2007 8:34 pm
by bodhi
Hi all i am trying to send a email through mainframe. i pasted the code which i am using below:

//VSMAILS JOB (1,68983,FOC-625),
// USER=&SYSUID,NOTIFY=&SYSUID,
// MSGCLASS=9
//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT1 DD *
HELO VIST010.VIPDIST123
MAIL FROM:<FROM.MAIL.COM >
RCPT TO:<TO.MAIL.COM>
DATA
TO: TO.MAIL.COM
SUBJECT: TEST MESSAGE
TEST MESSAGE
/*
//SYSUT2 DD SYSOUT=K,DEST=TCPSMTP
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*

WHEN I AM USING JSCAN TO FIND THE ERROR IT GIVE ("TCPSMTP " IS AN INVALID REMOTE DESTINATION ) BUT IF I SUBMIT THE JOB,IT WENT FINE BUT NO MAIL SENT THROUGH THIS.

THANKS IN ADVANCE
BODHI


CAN ANYBODY HELP ME WHERE I WENT WORNG

Re: MAIL FROM MAIMFRAME

PostPosted: Thu Sep 20, 2007 4:48 pm
by CICS Guy
bodhi wrote:WHEN I AM USING JSCAN TO FIND THE ERROR IT GIVE ("TCPSMTP " IS AN INVALID REMOTE DESTINATION ) BUT IF I SUBMIT THE JOB,IT WENT FINE BUT NO MAIL SENT THROUGH THIS.
Please try to remember to unlock your Caps...... :o
You could try to hide the destination in a symbolic.....that might fool the checker....

Re: MAIL FROM MAIMFRAME

PostPosted: Thu Nov 15, 2007 2:48 am
by Tzadik Vanderhoof
Did this ever work?

Re: MAIL FROM MAIMFRAME

PostPosted: Thu Nov 15, 2007 3:29 am
by dick scherrer
Hello Tzadik,

Is your question about this particlar jcl/dest or sending an e-mail from the mainframe in general?

It is quite common to send an e-mail from the mainframe.

Re: Send email through mainframe

PostPosted: Thu Nov 15, 2007 10:31 pm
by Tzadik Vanderhoof
Well, it looked like the person's question was never answered, so I'm wondering if this technique works. I'd certainly be interested in other techniques that work instead.

Re: Send email through mainframe

PostPosted: Fri Nov 16, 2007 12:45 am
by MrSpock
We use SAS. Of course, all that's required to send an SMTP message is some basic Socket programming.

Re: Send email through mainframe

PostPosted: Fri Nov 16, 2007 3:17 am
by Tzadik Vanderhoof
Can that be done in COBOL?

Re: Send email through mainframe

PostPosted: Fri Nov 16, 2007 9:06 am
by dick scherrer
Hello,

You could try to hide the destination in a symbolic.....that might fool the checker....
That was the suggestion to get around the error. TS has not replied. . .

Can that be done in COBOL?
Yes, code to use sockets can be written in cobol, but many/most mainframe e-mails are simply sent from a batch tso job.

Re: Send email through mainframe

PostPosted: Wed Jul 16, 2008 11:03 am
by nazishmirekar
I have tried sending emails through JCL. Though my job end with MAXCC = 0, i am not receiving mails. Do i need to check some MVS configuration?

Can any one give me more information?

Thanks,
Nazish.

Re: Send email through mainframe

PostPosted: Wed Jul 16, 2008 2:18 pm
by jayind
Hi nazishmirekar,

some setup needs to be done at SMTP to allow your email. You may need to check with your system admin (STG) people who deals with the email id creation, maintenance etc.. even i had this problem in one of my projects and i approached the STG people they did some configuration setup (which I am not aware) and it worked after that... Probably you need to check with them... This is my suggestion..

may be you can hear better solutions from others...

Regards,
Jayind