Results 1 to 3 of 3

Thread: Open Default Email and add attachment from io.stream

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    97

    Open Default Email and add attachment from io.stream

    Hi,

    What I would like to do is allow the user to click a button which will open their default email program (e.g. outlook, windows live mail, etc) and create a new email with an attachment (from io.stream) ready for them.

    Here's hoping someone here has done this and could help me.



    Thanks in advance.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Open Default Email and add attachment from io.stream

    That's not really possible I'm afraid. In theory the "mailto" protocol supports attachments but I'm not aware of a mail client that supports it. I know Outlook certainly does it. That would be the only way to generalise the process to any mail client. The only other alternative would be to write code to handle each individual mail client, which isn't really practical and, in some cases, may not even be possible.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    97

    Re: Open Default Email and add attachment from io.stream

    Oh that's a bit unfortunate. Oh well, I guess it's best I get them to manually do this.



    Thanks for the help.

Posting Permissions

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



Click Here to Expand Forum to Full Width