How about: How do I attach a file to an email w/MailTo: ?

  • Thread starter Thread starter cj
  • Start date Start date
cj said:
What's the parameter (like ?attachment) or something.

There is no standardized way to add an attachment via a 'mailto' link and
most mail clients do not support adding addachment this way at all.
 
So when in explorer when you click a .jpg file and then click send to
mail recipient how do they start a new message in my default email
client and attach the image?
 
sendto is a special windows folder.

just because it's POSSIBLE to make a web browser stand on it's head and
say the alphabet backwards; does that mean that you can do it?
 
Hi Cj,

I agree with Herfried, as for web page based application, cilent side
functionality is quite restricted, we can not do much like desktop
application. Also, "mailto" is a querystring like feature which can not
hold large binary data for attachement.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Steven,

cj, myself and others have asked the question:

"So when in explorer when you click a .jpg file and then click send to
mail recipient how do they start a new message in my default email
client and attach the image?"

Or in other words, how does one, using vb.Net, open the user's default
mail client with an email attachment? Windows Explorer does it using
the SendTo Mail Recipient. Is there a way to do that in .Net?
 
There's gotta be a way. In Windows Explorer I can click a .jpg file and
send to mail recipient and it works with Outlook Express, Outlook, and
Thunderbird. I'm using VB .net 2003 and writing a Windows App. From
searching for the answer to dealing with email on the web I see many
people want to know but so far I haven't found the answer.
 
Oh, I should have said, they might not be doing this with mailto:

I don't care how it's done as long as I can do it.
 
cj,

I tried an approach using mailto: and SendKeys, but it didn't work with all mail clients, not even with Outlook and Outlook Express.
I ended up using the MAPI controls from VB6 to do it. It would seem that there would be a simple .Net way to launch a mail client
with a file attached.
 
Al,

Those others you mention are probably thousands.

It is one of the most asked questions in these dotNet newsgroups. The answer
is in a way as Herfried wrote it.

This is not something Microsoft can handle. It has to do with the first
designs of the mail clients.

If it is not about the "default" mail client than there are solutions by
using Mapi's. But than it is not default mail client anymore.

Cor
 
Yea, I've been reading on the web non stop. I'm just now re-looking at
CMM's recommendation to me in my first posting "Send To Mail Recipient".
While the example he gave me of using MSMAPI32.OCX in .net included
sending the email I think I can leave the send part out and do what I
want. I was thinking there was a simpler way. And mailto: seemed so
easy. Right up until I had too much info to put in the body. Then I
thought I'll write it to a file and attach the file but file attachment
via mailto is non-existent or at least not standard. Maybe in VB.net
2007 we'll get a simple way. Well, figuring this out is what I'm paid
for so I'd better start looking at MAPI.

Special thanks to CMM for the at the time unappreciated MAPI solution
that now looks to be the most promising. And to Aziz for the incredibly
simple but sadly insufficient mailto: info--I have no doubt I'll use it
in the future. And to everyone else who helped.
 
cj said:
There's gotta be a way. In Windows Explorer I can click a .jpg file and
send to mail recipient and it works with Outlook Express, Outlook, and
Thunderbird. I'm using VB .net 2003 and writing a Windows App.

I assume that MAPI is used for this purpose, which supports adding
attachments. However, this won't work with a 'mailto:' address.
 
Back
Top