Results 1 to 4 of 4
  1. #1
    KeithHenn is offline Member
    Join Date
    Oct 2008
    Posts
    2
    Rep Power
    0

    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

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,418
    Rep Power
    25

    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.

  3. #3
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    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.

  4. #4
    KeithHenn is offline Member
    Join Date
    Oct 2008
    Posts
    2
    Rep Power
    0

    Default

    Quote 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.

Similar Threads

  1. send email using JMS
    By Heather in forum Advanced Java
    Replies: 9
    Last Post: 01-07-2009, 03:04 PM
  2. send email using apache commons email
    By jnamendi in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 10-14-2008, 05:55 PM
  3. Validating email address
    By ravian in forum New To Java
    Replies: 2
    Last Post: 12-21-2007, 08:42 AM
  4. help in email developing
    By reached in forum New To Java
    Replies: 0
    Last Post: 12-09-2007, 07:55 PM
  5. Email Sigs.
    By tomrayne in forum Advanced Java
    Replies: 1
    Last Post: 07-13-2007, 09:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •