• Post Reply Bookmark Topic Watch Topic
  • New Topic

new to javamail

 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
im new to java mail.. i need "Hello World java mail example " in simple tutorial. i like to run hello world example then go in advance details.
any links to help me in that please.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JEE FAQ contains a number of good links regarding JavaMail, particularly this one.
 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot ,It works and i made a success sending email via java mail,but i face small problem.
i want to send email in html format like:
div align="center"
table
/table
/div etc.

but when i send it it appears like text not in html format..how do i make it appear in html format.

Thanks a lot.
 
Rob Spoor
Sheriff
Posts: 20817
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to set the content type of your body to be text/html. You can use the setContent(Object, String) method for that.
 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot it works
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!