jQuery in Action, 2nd edition*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60765

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: how to send a html page in email
Similar Threads
sending html forms
Web report to Excel attachment in email
Create new email message
How to uudecode
E-mailing functionality in Java