File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Send Mail Problem
Amit Suresh Pawar
Joined: Dec 09, 2008
Mar 18, 2009 05:56:42
would like to create an email message in
and place it in a users outbox to be sent when the email client connects to a mail server. Here is the code I am now using:
Runtime.getRuntime().exec("cmd /c start mailto:firstname.lastname@example.org?subject=Test&body=Hello");
This creates a message window in Outlook and fills in the address and subject but does not send the message. I have to click on the send button to move the message to the Outlook outbox.
Is there a way to create an email message in Java and have a users default email client send it with out the user having to do anything?
Amit S. Pawar
Joined: Mar 22, 2005
Mar 18, 2009 06:34:48
Please do not post the same question to multiple forums:
Let's continue the discussion in this
Ping & DNS
- my free Android networking tools app
I agree. Here's the link:
subject: Send Mail Problem
to call outlook express mail message window
Saving mail from outlook with attachment with Java
how to call outlook express mail message window
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014