Mail content formatting
1 posts in topic
Flat View  Flat View

Posted By:   Tejas_Bakhai
Posted On:   Friday, January 4, 2002 01:40 AM

I am creating an application wherein if an exceptions occurs, E-mail is notified to the user.
The content of the email has a text name "priority" which can be fixed set of values as "Emergency, High, Medium, Low".
Now, i wanna to highlight the priority text in my mail content and also set the color to the text accordingly. Is this possible?????
Can u please suggest me a way wherein i can change the format of the mail text content.

Please use html tags to format code blocks.

Re: Mail content formatting

Posted By:   Gianluca_Sartori  
Posted On:   Thursday, January 17, 2002 12:47 AM

It depends of how you display the message. Generally speaking, you can send HTML mail messages, which allow you to format text as you want.

Anyway you can't be sure that the mail client used to read the message supports HTML mail, so you have to create a Multipart/alternative message to embed the parts of the message: the first part is text/plain and the other part is text/html, with formatted text.

The way this multipart is handled by the client is none of your business: one client could show the HTML part, one other could show the text part.
About | Sitemap | Contact