Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem displaying htmlData through javaMail

 
payal Jain
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have an HTML file which includes some text and images.Through java mail I am trying it to send to gmail.
may code is


I do recieve the mail but without any formatting or images.
i have also specified the path of css & javascript as http://server../css/cssname etc.

Can any one tell me how to diaply every thing properly.
 
Paul Clapham
Sheriff
Posts: 21567
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the links to the images in your HTML file have to be absolute URLs. Links which are relative to the page naturally aren't going to mean anything when the page is being displayed by the recipient's mail client.

And don't expect your recipient's mail client to execute Javascript or to use your CSS either.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic