mailto or JavaMail in stand-alone application?

Here is what I'm trying to do:

I wrote a small invitation application that asks for user

input. I have an 'RSVP' button that is supposed to

email the response back to my email address.

I've tried the following:

1) Runtime.getRuntime().exec("cmd /C mailto:name@what.com)

*This didn't work. I tried it within the cmd window and

get the following: "The system cannot find the path specified"

2) rundll32.exe url.dll,MailToProtocolHandler mailto:name@what.com

*This seemed to work except that: it took 13 seconds before the mail

message window popped up and I wasn't able to input the BODY and

SUBJECT of the message using standard windows format ($,&,%20,%0d,etc)

3) I've looked at JavaMail, but haven't figured out if it

can do what I desire.

Basically, I'm want to send this invitation to many recipients. I want those

recipients to open my application and RSVP whether or not they are going

to make it. Is there a way to do it THIS way?

Thanks

D

[1085 byte] By [DarrickWhite] at [2007-9-26 3:26:28]
# 1
Given that Javamail is an API to perform email operations(send, receive etc.), you should be able to use it for your requirement.In fact, it would be the option most people would choose to perform email operations from Java.
neville_sequeira at 2007-6-29 11:48:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

The only problem, when trying to send an email, the

send request is looking for an SMTP server, which is not

provided. When setting up the Properties, the hash

value for the indentifier 'mail.smtp.host' isn't known. How

would I get their SMTP server name?

Thanks

DarrickWhite at 2007-6-29 11:48:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
The right syntax to activate the inbox is "start mailto:user@abc.com". you did the wrong one.Good luck
stanley.lam@usa.net at 2007-6-29 11:48:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Just to let you know that 'start mailto:..." doesn't work either.
DarrickWhite at 2007-6-29 11:48:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

That's because in NT2000 the "start.exe" is build-in command, if you type in command in dos prompt window, everything works fine, but not from java code. Maybe you had to do some configure setting on it. That's what I really want to know too. Anyway, you can take a walk-around, you can copy the "start.exe" from win98 to win2000, from your java code, use that "start.exe" to lauch your mail stuff ....

Good luck

stanley.lam@usa.net at 2007-6-29 11:48:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
This works fine with me:Runtime.getRuntime().exec("rundll32.exe url.dll,FileProtocolHandler mailto:name@what.com");
TheAwakening at 2007-6-29 11:48:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...