• 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: 21973
36
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!