Meaningless Drivel is fun!
The moose likes Other JSE/JEE APIs and the fly likes to call outlook express mail message window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "to call outlook express mail message window" Watch "to call outlook express mail message window" New topic

to call outlook express mail message window

srinivasa varadhan

Joined: Oct 03, 2003
Posts: 23
i dont know if this question is for this section. but here goes the question.i want to call the email client outlook express mail message windows through java.what way can i call the message window . i have another query . i need to insert some email address stored in my database table in the mail message's "to" and "from" box.
Any help is appreciated

Torch your Thoughts....
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Could you explain what you are trying to do?
I am moving this to Other API's because it sounds like you are trying to do something with the java mail API. But maybe not.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

So it sounds like you are wanting to launch a New Message window for Outlook Express from a Java App and upon opening this New Message window, you want to populate to the To: and From: fields.
Well, if this is indeed what you want to do, with pure java, you could probably launch Outlook Express and you might even be able to launhc a New Message window provided Outlook Express was the users default Email client.
However, prepopulating any fields in that window is not possible with pure java. You would have to use JNI.
Now, with that being said, there is an alternative. Why don't you use the JavaMail API to send your messages. You can construct a very simple GUI window to simulate a New Message window using SWING or AWT. And with this you can programmatically insert values from a Database.

GenRocket - Experts at Building Test Data
kiran manohar
Ranch Hand

Joined: Sep 28, 2003
Posts: 49
i am doing my project in a short term. so going the java mail way might take a long time i feel. dont we have an api which covers ms outlook / ms exchange server. actually my client want to send emails through outlook a frame screen on clicking a button we have to open a outlook express with the to,cc,bcc,subject and body to be initialized from the database. thanks for the suggestions.
kiran manohar
Ranch Hand

Joined: Sep 28, 2003
Posts: 49
hi gregg,
i need to do it with outlook express. outlook express and my java client should be integrated. if for that i need to know native code, then i will follow that example. but i am new to native code. is there any code in nativejava to integrate outlook express with my java client program. as i told u before my java client has a button which on clicking pops the outlook express with all the addresses in the to,cc,bcc,subject and body sections.
on clicking the send button it goes to the email server which should be integrated with my java server program which has 2 parts a reciever program and a sender program. the reciever program should receive the email address found in the to section and check its validity. if the email address is valid then i have to store it to the database else i should not.
then if the email address is valid i have to send it to the sender java program which will in turn send it to the internet. "in short i need to send an outlook message through my java program to the internet". Any help is appreciated. also can u send me some examples for jni and javamail.
I agree. Here's the link:
subject: to call outlook express mail message window
It's not a secret anymore!