473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

add an attachment to an expression mailto

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) &
"'"

Nov 20 '05 #1
3 5985
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
Nov 20 '05 #2
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
Nov 20 '05 #3
* "toufik" <to*****@sympatico.ca> scripsit:
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) &
"'"


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/>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Joe W Larson | last post by:
I've been up and down trying to figure this one out with no luck. Is it possible to have a mailto link or some other way with Javascript that can send the HTML content of the current page or of an...
1
by: Thejus | last post by:
Hi, I want to launch Outlook express with attachment. Any ideas ? Thanks Thejus
2
by: Robbie De Sutter | last post by:
Hello, How do I open a new, empty e-mail message from the default e-mail client whereby the sender is given and a file is attached? Currently I use the command (vb.net): ---...
6
by: Kurt | last post by:
Hello, How do I launch default e-mail client (Otulook, Eudora...) with attachment? mailto: does not support attachments and SMTP does not open the default e-mail client. Kurt
0
by: toufik | last post by:
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 =...
0
by: johnb41 | last post by:
I can successfully open up a user's default email client and create a new email with this: proc.Start("mailto:aaa@bbb.com?subject=Test) But i need to add an attachment to the email. I know...
2
by: Hanika | last post by:
Going on 3 days and I am wodnering if I am just not looking in the right place. If anyone nows how to do this please please help me. I am developing a Windows form application using VB.NET 2005....
5
by: Ben K | last post by:
I saw some posting some time ago regarding a "trick" to automatically pop up an email editor with attachment using the default mail client. It is basically using automation to do the following...
2
by: Erik Witkop | last post by:
So I have been trying to get this to work all day. I can't get a local file on my web server to attach to an email. Right now I have it printing out in the body of the email. Please help me with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.