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.
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?
Re: Embedding a file in the &body section of a mailto: command
Quote:
Originally Posted by
Arnoutdv
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,
Re: Embedding a file in the &body section of a mailto: command
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?