File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes how to send a html page in email Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to send a html page in email" Watch "how to send a html page in email" New topic

how to send a html page in email

Michael L. Zhang
Ranch Hand

Joined: Jul 06, 2003
Posts: 33
Our website has a mailto link with source like "mailto:?body=linkofabookmark" , so user can launch email client and send the bookmark links to friends.

We are now required to launch the user's email client with the real html page already filled inside the body of the email. So their recipents can view the html page directly in their email instead of always clicking the link to view it.

Is that possible by using the tricks of "mailto"?

If "mailto" is not capable to do this, how can I do that? If I move the logic to server/servlet side, how can I send a HTML email?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63869

No, not with mailto. You'll need to use the JavaMail API.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: how to send a html page in email
jQuery in Action, 3rd edition