mailto and Attachments
-
This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague
-
This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague
Simple MAPI is an easy way to do it. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_simple_mapi.asp[^] Chris Richardson
-
This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague
It can't be done with mailto. You can do it with MAPI - see my article here for an example. Look at the file SendMail.cpp.
-
This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague
If you read the mailto URL scheme[^] it states that only the subject and body header can be expected to be resolved. WinZip isn't using the mailto format to perform this action. - Nick Parker
My Blog | My Articles -
This is going to drive me crazy. I'm trying to create a mailto URL that includes attachments. I found an example here on CP but it doesn't work for me. My default email client is Outlook and it complains about a parameter. Now, I suspect it can be done because WinZip supports "Zip and Email." Perhaps WinZip isn't using the mailto URL but if it isn't how is it opening the default email client. Any ideas or solutions? --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague
The following worked for me using Outlook 2000. I just typed it into the Run box. mailto:fname.lname@mycompany.com&Subject=Test&Attach="c:\boot.ini"
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
If you read the mailto URL scheme[^] it states that only the subject and body header can be expected to be resolved. WinZip isn't using the mailto format to perform this action. - Nick Parker
My Blog | My ArticlesI'd read the scheme and it seems that some mail clients adhere to the scheme and some allow the "attach" or "attachment" option. Bummer. --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague
-
The following worked for me using Outlook 2000. I just typed it into the Run box. mailto:fname.lname@mycompany.com&Subject=Test&Attach="c:\boot.ini"
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
It can't be done with mailto. You can do it with MAPI - see my article here for an example. Look at the file SendMail.cpp.
-
I should also have clarified that I need the dialog to remain open so the user can edit the message. Much like WinZip does. --- "This isn't right. This isn't even wrong." -Wolfgang Pauli (1900 - 1958), on a paper submitted by a physicist colleague
That is exactly what my code does - it brings up the default email client, and waits for the user to hit send (or edit the message).