Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2007

Tip: Looking for answers? Try searching our database.

Clean way to send HTML e-mail with image using default mail client?

Thread view: 
Ramon - 25 Oct 2007 02:33 GMT
Hi --

We want to embed a "Send image via email" link in our app but (a) want
to allow the user to add some additional information / text to the
email and (b) don't want to clone a whole email client in our app. So
the user experience we're trying to deliver is similar to what happens
when you click on a mailto link in a browser: you get a blank email,
with your favorite email client (Outlook, Thunderbird, etc), with the
address and subject line filled in (if the mailto link was configured
with that info). We'd like to do the same, but also have a newly-
generated image included in the email, either as an attachment or
embedded in an HTML email. Users can use their own signatures,
addressbooks, etc.

AFAICT JavaMail doesn't support this mode. Is there a clean way -- as
encapsulated by a best practice or library -- for sending e-mail in
this way?

Thanks!

Ramon
Arne Vajhøj - 25 Oct 2007 02:36 GMT
> We want to embed a "Send image via email" link in our app but (a) want
> to allow the user to add some additional information / text to the
[quoted text clipped - 11 lines]
> encapsulated by a best practice or library -- for sending e-mail in
> this way?

Are you asking on how to send an email with both HTML and
attached image via JavaMail API ?

Or are you asking how to activate the default mail program
on the system with an image attached ?

Arne
Ramon - 25 Oct 2007 03:02 GMT
On Oct 24, 6:36 pm, Arne Vajh?j <a...@vajhoej.dk> wrote:

> Are you asking on how to send an email with both HTML and
> attached image via JavaMail API ?
>
> Or are you asking how to activate the default mail program
> on the system with an image attached ?

The second one -- use the default mail program.

Thx,

Ramon


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.