How to send html format in mail from MF.



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

How to send html format in mail from MF.

Postby gokulNmf » Tue Nov 06, 2012 10:19 am

Hi,

I want to send mail from MF, but i want send it with tables, so I thought of sending with HTML tags so that it has to be resolved when the recipient sees it, he must see the tables.

Please find the attachment which has the table.
You do not have the required permissions to view the files attached to this post.
Cheers,
Gokul
User avatar
gokulNmf
 
Posts: 114
Joined: Sat Mar 28, 2009 6:41 pm
Location: India
Has thanked: 0 time
Been thanked: 0 time

Re: How to send html format in mail from MF.

 

Re: How to send html format in mail from MF.

Postby Pandora-Box » Tue Nov 06, 2012 11:27 am

What you need to do is use XML to build the tags based on values and use IEBGENER

If you are not sure how to build XML to create that

Create a similar table in MS word then do a right click to view source

You would get the tag format of table use that as input and modify the values dynamically through some program
User avatar
Pandora-Box
 
Posts: 65
Joined: Fri Feb 10, 2012 8:30 pm
Location: Mars
Has thanked: 3 times
Been thanked: 6 times

Re: How to send html format in mail from MF.

Postby gokulNmf » Tue Nov 06, 2012 3:54 pm

Hi prem,
Thanks for the reply. I can create the HTML document, but while sending mail, them mail must not have the html tags, rather it must look like the html file in an browser.
Cheers,
Gokul
User avatar
gokulNmf
 
Posts: 114
Joined: Sat Mar 28, 2009 6:41 pm
Location: India
Has thanked: 0 time
Been thanked: 0 time

Re: How to send html format in mail from MF.

Postby Pandora-Box » Tue Nov 06, 2012 4:12 pm

If you just create a document as such and mail using IEBGENER you get what you need

Just to make you understand I would ask you to try it

Your mail wont have any tags
User avatar
Pandora-Box
 
Posts: 65
Joined: Fri Feb 10, 2012 8:30 pm
Location: Mars
Has thanked: 3 times
Been thanked: 6 times

Re: How to send html format in mail from MF.

Postby Robert Sample » Tue Nov 06, 2012 5:29 pm

when the recipient sees it, he must see the tables.
This is complete and utter garbage. Whether or not the recipient will see the tables will depend upon the mail client the recipient is using. If the mail client does not support HTML, or if the mail client is configured for plain text instead of HTML, you can send HTML (or XML or RTF or anything else you want to send) but the recipient will not see tables.

There is nothing to prevent you from creating HTML on a mainframe and sending it in an email as long as you follow the SMTP rules. Whether or not that email will be seen as HTML, however, is beyond your control and depends upon the mail client.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post