Results 1 to 5 of 5

Thread: Embedding a file in the &body section of a mailto: command

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2014
    Posts
    14

    Question Embedding a file in the &body section of a mailto: command

    Hi,

    I'm upgrading a Visual Basic 6 application to use the mailto: command with ShellExecute to replace the standard VB6 MAPI session and mail controls. My requirement is to basically send an email with attachments. I've found that the &Attachment string in the mailto: command does not attach the files as required. I've searched everywhere and tried numerous combinations of ways to specify the attachments with no result. The email - In Outlook 2010 - is created fine but with no attachments. My idea is to embed the attachments in the &body section of the mailto: command. The file types are arbitrary, everything from simple text through to pictures and audio files. Can someone please tell me how I might embed these attachments into the &body section of the mailto: command?

    Thanks,

    David.

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,734

    Re: Embedding a file in the &body section of a mailto: command

    I never got this method working and still use MAPI.
    Is there a specific reason for abandoning MAPI?

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2014
    Posts
    14

    Post Re: Embedding a file in the &body section of a mailto: command

    Quote Originally Posted by Arnoutdv View Post
    I never got this method working and still use MAPI.
    Is there a specific reason for abandoning MAPI?
    Thanks for the response. Simple MAPI using the Visual Basic 6.0 MAPI session and MAPI mail ActiveX controls do not work with Microsoft Outlook version 2007 and higher. Simple MAPI is deprecated in these versions. How do you utilise MAPI in your application to send emails with attachments? A code snip would be very helpful. Thanks for the response,

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Embedding a file in the &body section of a mailto: command

    Look in to Redemption or WeOnlyDo.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,734

    Re: Embedding a file in the &body section of a mailto: command

    I have not encountered problems using MAPI and computers having Outlook 2007 or 2010 installed.
    Do you have link to a MSDN article?

Tags for this Thread

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