How to add an attachment to an expression mailto
(Friday, October 08, 2004)
Found the following interesting discussion in the Newsgroups:
add an attachment to an expression mailto by:toufik
| Hi, How can we add an attachment to an email using mailto, I've this code to open a new email window (default email), it works but I like to add an attachment to it
Dim mailMess As String = "mailto:" & ReplaceSpecialCharacters(mailTo) mailMess = mailMess & "?Subject=" & ReplaceSpecialCharacters(mailSubject) mailMess = mailMess & "&Body=" & ReplaceSpecialCharacters(mailText) System.Diagnostics.Process.Start(mailMess)
I've tried this but doesn't work... mailMess = mailMess & "&Attach='" & ReplaceSpecialCharacters(attachement) & "'"
| | | Reply: by:Cor Ligthert
| | | Hi Toufik,
With the default mailclient you cannot add attachments.
When you use by instance smtp mail (system.web.mail) or (Office) Outlook it is possible.
I hope this helps?
Cor
| | | Reply: by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])
| | | It depends on what newsreader you are using. Some newsreaders expect '&att', some don't support it at all.
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
|
|
0 Comments:
Post a Comment