View previous topic :: View next topic
|
Author |
Message |
Vignesh Sid
New User
Joined: 04 Sep 2017 Posts: 43 Location: India
|
|
|
|
Hi all,
I need to send a mail with the contents of PS file (record length 80 and FB) as the body of mail.
I have coded the following:
Code: |
//MAIL EXEC PGM=IEBGENER
//OUTPUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=CARD(card01),DISP=SHR
// DD DSN=file1,DISP=SHR
//SYSUT2 DD SYSOUT=(B,ZSPTCPM)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=* |
In the card I used:
Code: |
HELO SYSA
MAIL FROM:<abc@gmail.com>
RCPT TO:<xyz@gmail.com>
DATA
SUBJECT: TEST MESSAGE FROM MAINFRAME
|
I am able to send mail. But the mail is balnk i.e It does mot have a subject, from and to info...Just the body of the mail is present which is the contents in the PS file.
Could you please give me a solution to send mail with all details!
Thanks! |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
You need additional SMTP tags, like below
Code: |
HELO SYSA
MAIL FROM:<WELLS@DANKMEMES.COM>
RCPT TO:<WELLS@DANKMEMES.COM>
RCPT TO:<WELLS@DANKMEMES.COM>
DATA
From:<WELLS@DANKMEMES.COM>
To:<WELLS@DANKMEMES.COM>
Cc:<WELLS@DANKMEMES.COM>
Subject: Dank memes are ready
MIME-Version: 1.0 |
|
|
Back to top |
|
|
Vignesh Sid
New User
Joined: 04 Sep 2017 Posts: 43 Location: India
|
|
|
|
Thanks Vasanthz,
I tried adding the SMTP tags as suggested. Still I am getting a blank mail.
Please suggest me any way to solve this!
Thanks! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
I don't suppose that you had thought of telling us what the log says, or even better posting the log so that we may see
Your code is also a good help for those that wish to help |
|
Back to top |
|
|
Vignesh Sid
New User
Joined: 04 Sep 2017 Posts: 43 Location: India
|
|
|
|
Hi all,
I changed HELO SYSA - SYSA to our system and now the mail has been genearted successfully.
Thank you all for reply!
Regars! |
|
Back to top |
|
|
|