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 / December 2006

Tip: Looking for answers? Try searching our database.

Sending email attachment using Java through Outlook Express

Thread view: 
param - 07 Dec 2006 07:21 GMT
Hi

Can anyone suggest how we can interface Outlook Express with java in
order to send email?

I want to add 'Email Friend' link in my project, on clicking on this
link Outlook Express should open with a specified file attached.

I searched on net also, but I am getting only JOC everywhere which is
not freeware.

Please suggest me on the same that how it can be done?

Thanks
Param
pcouas - 07 Dec 2006 08:20 GMT
param a ?crit :

> Hi
>
[quoted text clipped - 11 lines]
> Thanks
> Param
Mark Jeffcoat - 07 Dec 2006 19:08 GMT
> Can anyone suggest how we can interface Outlook Express with java in
> order to send email?
[quoted text clipped - 6 lines]
>
> Please suggest me on the same that how it can be done?

If your end goal is an Outlook Express interface, I
can't help. I wouldn't be surprised if there's no free
solution at all; that's the sort of thing I'd expect
to have to pay for.

If you just want to send an email with a bit of text
plus an attachment, I suggest the JavaMail API:

    http://java.sun.com/products/javamail/

There are a couple of tutorial-style write-ups that
go over creating an email with an attachement, but
in brief (very brief), you can use the JavaMail API
to create a MimeMessage, whose content is a MimeMultipart,
and add your attachments as MimeBodyParts, and hand
the whole thing over to javax.mail.Transport. Viola.

Signature

Mark Jeffcoat
Austin, TX

mearvk - 07 Dec 2006 19:18 GMT
I'd try to see if you can run Outlook Express via Runtime.exec and
*hopefully* there are some parameters you can use in this call.

For instance (pseudo-code):

Runtime.exec("iexplore.exe -k google.com");

would give you a new full-screen IE window pointed at google.com.

Luck,

mearvk


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.