Mail Message contents should be in HTML format



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Mail Message contents should be in HTML format

Postby deva_048 » Tue May 28, 2013 12:12 pm

Hi,

I have implemented to send a message from mainframe to particular receipients. Message contents are displayed in normal text. Is it possible to send the contents of the dataset in html format to receipients.

Below code sending message in normal text
%XMITIP (aaa_bbb@xxx.com)                                  + 
 SUBJECT Subject:  &DATE &DAY TIME: &TIME'         +               
 MSGDD MSG                                                            +
 FORMAT HTML/w-blu//4//YES///                                           


Thanks in advance
deva_048
 
Posts: 72
Joined: Thu Feb 02, 2012 9:28 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Mail Message contents should be in HTML format

Postby prino » Tue May 28, 2013 2:05 pm

Yes/No questions deserve a yes/no answer: Yes

A for what it's worth, you could even send it in hieroglyphs!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Mail Message contents should be in HTML format

Postby deva_048 » Tue May 28, 2013 8:21 pm

If yes , Please tell me how to do that...
deva_048
 
Posts: 72
Joined: Thu Feb 02, 2012 9:28 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Mail Message contents should be in HTML format

Postby Robert Sample » Tue May 28, 2013 8:41 pm

There is nothing on the mainframe to help you -- you hand-code in your program the HTML beginning and ending tags you want and write them as part of your message.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Mail Message contents should be in HTML format

Postby deva_048 » Tue May 28, 2013 8:56 pm

I can able to write HTML codes. But where to put those html tags in above mentioned code this is wat my question here ???...
deva_048
 
Posts: 72
Joined: Thu Feb 02, 2012 9:28 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Mail Message contents should be in HTML format

Postby Robert Sample » Tue May 28, 2013 9:17 pm

Although I do not use XMITIP, I would suspect that you need to modify the contents of the data set pointed to by DD name MSG based upon your original post.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post