IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Email using JCL with High importance


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Tue Feb 14, 2012 8:26 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Feb 14, 2012 8:29 am
Reply with quote

Neither have I, but you might want to review the SMTP and/or MIME specifications in case there is one.
Back to top
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Tue Feb 14, 2012 8:46 am
Reply with quote

Hi Superk,

Thanks for you fast response!!!

Could you please guid me where / how to review the SMTP or MIME specifications?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Feb 14, 2012 9:40 am
Reply with quote

for SMTP or MIME specifications go HERE

and review only requires reading.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Tue Feb 14, 2012 10:59 am
Reply with quote

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
View user's profile Send private message
Bhargav_1058

New User


Joined: 13 Dec 2008
Posts: 53
Location: New York

PostPosted: Wed Feb 15, 2012 6:53 am
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Wed Feb 15, 2012 11:43 am
Reply with quote

I was just making a pun of dragonballZ :-)
Thanks anyway.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts Problem while sending special charact... JCL & VSAM 4
No new posts TXT2PDF and then SMTP email a PDF JCL & VSAM 4
Search our Forums:

Back to Top