View previous topic :: View next topic
|
Author |
Message |
Bhargav_1058
New User
Joined: 13 Dec 2008 Posts: 53 Location: New York
|
|
|
|
Hi,
Could someone help me in triggering an email with high importance using IEBGENER?
I used below code for the same and was able to trigger the email. However I was not aware of any command that can set the email with high importance.
Code: |
HELO TBCBOS
MAIL FROM:<abcdef@email.com>
RCPT TO:<abcdef@email.com>
DATA
FROM:<Error.mailemail.com.com>
TO:<abcdef@email.com>
SUBJECT: 02/13/2012 - Errors found
MIME-VERSION: 1.0
CONTENT-TYPE:MULTIPART/MIXED;
BOUNDARY="MAIL"
--MAIL
CONTENT-TYPE:TEXT/PLAIN;
Hi,
Please check this, errors found.
--MAIL
CONTENT-TYPE:TEXT/PLAIN; NAME="Error_02/13/2012.txt
CONTENT-DISPOSITION: ATTACHMENT; FILENAME="Error_02/13/2012.txt"
CONTENT-TRANSFER-ENCODING:7BIT |
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Neither have I, but you might want to review the SMTP and/or MIME specifications in case there is one. |
|
Back to top |
|
|
Bhargav_1058
New User
Joined: 13 Dec 2008 Posts: 53 Location: New York
|
|
|
|
Hi Superk,
Thanks for you fast response!!!
Could you please guid me where / how to review the SMTP or MIME specifications? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
for SMTP or MIME specifications go HERE
and review only requires reading. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Add IMPORTANCE : HIGH to your standard SMTP statements.
Code: |
//MAILSTPC EXEC PGM=IEBGENER,COND=(4,LT)
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
HELO SMTP
MAIL FROM: <wells@wells.com>
RCPT TO: <wells@wells.com>
DATA
FROM: <wells@wells.com>
TO: <wells@wells.com>
SUBJECT: setting importance in mail
IMPORTANCE: HIGH
MIME-VERSION: 1.0;
CONTENT-TYPE: TEXT/RICH TEXT;
ITS VALENTINES DAY, AND IM HERE WRITING MAINFRAME CODE. FOREVER ALONE LVL OVER 2000
/*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSIN DD *
/* |
|
|
Back to top |
|
|
Bhargav_1058
New User
Joined: 13 Dec 2008 Posts: 53 Location: New York
|
|
|
|
Hi Vasanth,
Thats perfect solution, Its working as expected.
Thanks for your help!
You won't be alone for next valentines day... (I'll pray for you)... |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
I was just making a pun of dragonballZ :-)
Thanks anyway. |
|
Back to top |
|
|
|