dcsimg
How to send mail using outlook express from a java program?
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Madhan_Prabahar
Posted On:   Wednesday, March 5, 2003 02:53 AM




My Java Mail program(Not an applet.. It's an application) will be given the following data at Run time:

To, Subject and Message.



The program should send the mail automatically from the outlook express (or any Mail client which is installed in the machine) with client's From mail addess.



Is it possible? Could any one help



Thanks

Madhan

Re: How to send mail using outlook express from a java program?

Posted By:   abc_cde  
Posted On:   Thursday, May 8, 2003 08:14 AM

don't know

Re: How to send mail using outlook express from a java program?

Posted By:   Anonymous  
Posted On:   Saturday, March 15, 2003 05:12 PM

Hello Madhan,


I agree with Chritopher that you probably are better off just sending the email using JavaMail (and thus justifying the conversation on this forum :)


However, if you insist, here is one way out:


Runtime.getRuntime().exec(new String[] {
"explorer"
, ""mailto:me@company.com?subject=my%20subject&body=the%20body""
});

I think you'll need to encode the body using a url endoder.


Note that this way will first launch explorer which will look in the its preferences for the set mail application, and if none is set, then it will look in the registry for the installed default mail app. Note also that this choice is not platform independent.


Hope this helps ;)


-W

Re: How to send mail using outlook express from a java program?

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, March 5, 2003 07:43 AM

Why would you want to use both the JavaMail API, AND Outlook Express? They do the same thing.

About | Sitemap | Contact