sending mail as html
2 posts in topic
Flat View  Flat View

Posted By:   Rashmy_VP
Posted On:   Friday, June 6, 2008 12:54 AM

how can i add mail as html content.i have converted html as a a string and when i pass that string directly as the message,that html content structure comes as output.is there any way to add that string to message in the mail.
please help me.

Re: sending mail as html

Posted By:   sandip_shil  
Posted On:   Thursday, June 26, 2008 04:43 AM

hi, u can do it....create another java bean file in which u initialize all the string.string may be as long as u needed.
for example:
string testString="hello! India ";
save it in file say "test.java"
now call that object of the file test.java containing string it ur main mail program as message....
it will make ur work easy...


Re: sending mail as html

Posted By:   Stephen_McConnell  
Posted On:   Friday, June 6, 2008 07:39 PM

I guess you would have to format the body of your email as HTML when you build it.

Stephen McConnell

About | Sitemap | Contact