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
Send email through mainframe
Re: MAIL FROM MAIMFRAME
Please try to remember to unlock your Caps......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.

You could try to hide the destination in a symbolic.....that might fool the checker....
-
- Posts: 21
- Joined: Tue Nov 13, 2007 11:53 pm
- Skillset: I received an email that i have been registered and approved but the username and password you sent me are not working. I tried to find a way to contact you but I was not able to, and the email says "donotreply".
- Referer: web search
Re: MAIL FROM MAIMFRAME
Did this ever work?
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: MAIL FROM MAIMFRAME
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.
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.
Hope this helps,
d.sch.
d.sch.
-
- Posts: 21
- Joined: Tue Nov 13, 2007 11:53 pm
- Skillset: I received an email that i have been registered and approved but the username and password you sent me are not working. I tried to find a way to contact you but I was not able to, and the email says "donotreply".
- Referer: web search
Re: Send email through mainframe
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.
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: Send email through mainframe
We use SAS. Of course, all that's required to send an SMTP message is some basic Socket programming.
-
- Posts: 21
- Joined: Tue Nov 13, 2007 11:53 pm
- Skillset: I received an email that i have been registered and approved but the username and password you sent me are not working. I tried to find a way to contact you but I was not able to, and the email says "donotreply".
- Referer: web search
Re: Send email through mainframe
Can that be done in COBOL?
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Send email through mainframe
Hello,
That was the suggestion to get around the error. TS has not replied. . .You could try to hide the destination in a symbolic.....that might fool the checker....
Yes, code to use sockets can be written in cobol, but many/most mainframe e-mails are simply sent from a batch tso job.Can that be done in COBOL?
Hope this helps,
d.sch.
d.sch.
-
- Posts: 3
- Joined: Tue Jul 15, 2008 11:37 am
- Skillset: Mainframe
- Referer: google
Re: Send email through mainframe
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.
Can any one give me more information?
Thanks,
Nazish.
-
- Posts: 62
- Joined: Wed Apr 23, 2008 1:37 pm
- Skillset: Mainframe - JCL, COBOL, VSAM, DB2, REXX, CICS
- Referer: Internet Search
- Location: Chennai, India
- Contact:
Re: Send email through mainframe
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
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
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Librarian - how to send a listing of members to a dataset
by MLK2348 » Tue Feb 27, 2024 8:21 pm » in All Other Tools - 4
- 3405
-
by enrico-sorichetti
View the latest post
Thu Feb 29, 2024 7:16 pm
-
-
-
Easy way to send PDS of source code to another user via inte
by mamustoe » Wed May 18, 2022 4:34 pm » in JCL - 4
- 1845
-
by willy jensen
View the latest post
Wed May 18, 2022 10:42 pm
-
-
- 1
- 3615
-
by jibanes
View the latest post
Sun Dec 06, 2020 1:41 am
-
- 0
- 1637
-
by aarvalar1
View the latest post
Mon Sep 09, 2024 7:21 pm
-
-
Copying All Data Off An Old Mainframe
by zunebuggy » Wed Sep 25, 2024 1:10 am » in Mainframe Security - 0
- 1602
-
by zunebuggy
View the latest post
Wed Sep 25, 2024 1:10 am
-