How to send an email in java
Use javax.mail.* to send emails.
the following method can be used to send an email .
this method sends email as plain text, to send a html mail replace "text/plain" with "text/html"(As described here this will not wrap the mail body, so you have to do that manually using html tags. will explain more on that some other time)
View code.
About this entry
You’re currently reading “How to send an email in java,” an entry on Quality Obsessed
- Published:
- 03.27.08 / 12pm
- Category:
- Java
- Rate article:
Printer Friendly

No comments
Jump to comment form | comments rss [?] | trackback uri [?]