Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-22-2008, 09:33 PM
Member
 
Join Date: Oct 2008
Posts: 2
Rep Power: 0
KeithHenn is on a distinguished road
Default Pre-Populating an Outlook Email
Hello Everyone,

My project is to allow an end user select a button and once this is done they would have an outlook email window open up, which would have the to, from, subject, body and attachments all set.

They would be able to edit the body and send it at any time. I've looked into mailto but I cannot get the attachments to work.

Has anyone done anything like this or can think of a solution, I am kind of stumped.

Thank you.
Keith
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 10-22-2008, 09:45 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
If there were defined protocols to the outlook mail program, that would be the way to go. I don't know what GUI programs have a programmable interface that would allow a program to communicate with the GUI program. Perhaps there are commandline args that could be set.
Another possibility (but very remote) is the Robot class. It can move the cursor and enter text to simulate a user.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 10-23-2008, 06:16 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
Does it have to be Outlook mail? That is a pretty serious restriction.

A much easier thing to do is:

Generate a letter/annoucement, and email it to user@somedomain.com

which you can do using the normal Java mail functions.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 10-23-2008, 04:13 PM
Member
 
Join Date: Oct 2008
Posts: 2
Rep Power: 0
KeithHenn is on a distinguished road
Default
Originally Posted by fishtoprecords View Post
Does it have to be Outlook mail? That is a pretty serious restriction.

A much easier thing to do is:

Generate a letter/annoucement, and email it to "fdghth"
which you can do using the normal Java mail functions.

This is the end users request, we currently have it set up the way you have suggested.

I have found a product "Moyosoft" which seems to bridge the gap between java and outlook, I'm looking for any free solution before going the purchase route.

Anyone have success creating an eml file? One thing I thought of was to create an eml file save it to the server and have a bat file run to open the eml file. Does this sound possible?

Thanks again for your suggestion.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
send email using JMS Heather Advanced Java 9 01-07-2009 04:04 PM
send email using apache commons email jnamendi JavaServer Faces 0 10-14-2008 06:55 PM
Validating email address ravian New To Java 2 12-21-2007 09:42 AM
help in email developing reached New To Java 0 12-09-2007 08:55 PM
Email Sigs. tomrayne Advanced Java 1 07-13-2007 10:14 AM


All times are GMT +2. The time now is 06:34 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org