473,385 Members | 1,593 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,385 software developers and data experts.

Send e-mail message with attachment with the default e-mail client?

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):
---
System.Diagnostics.Process.Start("mailto:someone@s omewhere&subject=the%
20subject")
---
to open an emtpy e-mail message form (the default e-mail editor of the
user will be started) with the given subject "the subject" (%20 = space
(this is URL encoded)) ready to send to "someone@somewhere".

But how can I add a file attachment?

Note: I am NOT looking for an SMTP engine. I am NOT looking to send e-
mails directly without user interaction (= click on send).
Also any sollution based on one specific e-mail client is NOT good. The
solution must work in any possible e-mail configuration.

tia,
Robbie

Nov 20 '05 #1
2 12154
Hi Robbie

The mailto protocol only supports setting the subject and the body of the
mail message and does not allow attaching a file. This link should help you.

http://msdn.microsoft.com/library/de...tworking/prede
fined/mailto.asp

--
Mike Sampson | VB .Net Deployment
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
--------------------
From: Robbie De Sutter <Ro*********************@ugent.be>
Subject: Send e-mail message with attachment with the default e-mail client?Date: Tue, 28 Oct 2003 21:58:03 +0100
Message-ID: <MP************************@msnews.microsoft.com >
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Newsreader: MicroPlanet Gravity v2.60
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: d515283cb.kabel.telenet.be 81.82.131.203
Lines: 1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:151443
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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):
---
System.Diagnostics.Process.Start("mailto:someone@ somewhere&subject=the%
20subject")
---
to open an emtpy e-mail message form (the default e-mail editor of the
user will be started) with the given subject "the subject" (%20 = space
(this is URL encoded)) ready to send to "someone@somewhere".

But how can I add a file attachment?

Note: I am NOT looking for an SMTP engine. I am NOT looking to send e-
mails directly without user interaction (= click on send).
Also any sollution based on one specific e-mail client is NOT good. The
solution must work in any possible e-mail configuration.

tia,
Robbie


Nov 20 '05 #2
In article <Ts**************@cpmsftngxa06.phx.gbl>,
mi******@online.microsoft.com says...
Hi Robbie

The mailto protocol only supports setting the subject and the body of the
mail message and does not allow attaching a file. This link should help you.

http://msdn.microsoft.com/library/de...tworking/prede
fined/mailto.asp


Thx for the link! I didn't found that information.

Too bad it's not good news :( but know I'm sure it's not possible so I
can stop looking ;)

greetings,
Robbie
Nov 20 '05 #3

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

Similar topics

88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
1
by: Sam | last post by:
Hi, I want to be able to send an email w/ attachment. I have an INPUT Type="File" HTMLControl on the page. User selects the attachment using this control. That's where I'm stuck. First, I...
21
by: Dino M. Buljubasic | last post by:
I'd like my application to be able to detect default email application (MS Outlook or whichever is set to be default) so that the user can enter the email body, address, subject line and send the...
7
by: Darin | last post by:
Currently, our software is creating an email message using the Outlook DLL to send emails out that have PDF attachments. I want to stop forcing the customer to use outlook to send email. So, I...
2
by: Landley | last post by:
Hello, Is there a way of creating an email, attaching a file and sending using the client's default mail client? I am looking for a none email client specific solution that does not involve...
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....
2
by: anshukher | last post by:
hi, i am making a windows application in C# and in that when i click on the send button the default mail client should open along with the attachment that i have browsed already! i have tried to...
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...
8
Atran
by: Atran | last post by:
Hello Everybody, I want to send a message to somebody email using C# I have the right code but when I run the application it shown the "ArgumentExecption was unhandled" error, it is been yellow, it...
3
by: Steven Allport | last post by:
I am working on processing eml email message using the email module (python 2.5), on files exported from an Outlook PST file, to extract the composite parts of the email. In most instances this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.