473,419 Members | 1,795 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,419 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 12157
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.