Sending an email attachment from default email client
Posted on 2005-05-02
I'm developing a desktop application in C++ (using MS Visual stdio 6.0) and I have from following requirement:
- the application must launch the default email client on the user's PC to send an email (easy using ShellExecuteEx)
- it must then attach a binary file to the message (this seems to be the hard part!).
- it needs to work for all the popular email clients (eg. Outlook Express, Eudora, MS Outlook etc)
I've seen several threads already that show how to program using the SMTP protocol to send the message with an attachment directly to the server, but this is NOT what I want do do. I also don't want the user to have to re-enter the the server address/authentication password etc in my program - after all, they've already configured their email client for this once!.
Thanks in advance for any help with this.