By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,677 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,677 IT Pros & Developers. It's quick & easy.

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

P: n/a
cj
What's the parameter (like ?attachment) or something.
May 1 '06 #1
Share this Question
Share on Google+
12 Replies


P: n/a
"cj" <cj@nospam.nospam> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 1 '06 #2

P: n/a
cj
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?

Herfried K. Wagner [MVP] wrote:
"cj" <cj@nospam.nospam> schrieb:
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.

May 1 '06 #3

P: n/a
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?

May 1 '06 #4

P: n/a
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.)

May 2 '06 #5

P: n/a
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?

--
Al Reid
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message news:56**************@TK2MSFTNGXA01.phx.gbl...
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.)

May 2 '06 #6

P: n/a
cj
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.

Al Reid wrote:
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?

--
Al Reid
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message news:56**************@TK2MSFTNGXA01.phx.gbl...
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.)


May 2 '06 #7

P: n/a
cj
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 wrote:
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.

Al Reid wrote:
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?

--
Al Reid
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:56**************@TK2MSFTNGXA01.phx.gbl...
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.)


May 2 '06 #8

P: n/a
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 Reid

"cj" <cj@nospam.nospam> wrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
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 wrote:
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.

Al Reid wrote:
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?

--
Al Reid
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:56**************@TK2MSFTNGXA01.phx.gbl...
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.)

May 2 '06 #9

P: n/a
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

"Al Reid" <ar*****@reidDASHhome.com> schreef in bericht
news:u6**************@TK2MSFTNGP02.phx.gbl...
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?

--
Al Reid
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:56**************@TK2MSFTNGXA01.phx.gbl...
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.)


May 2 '06 #10

P: n/a
cj
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.
Al Reid wrote:
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.

May 2 '06 #11

P: n/a
cj
Cor,

This is a bit over my head but I thought this might be of interest on
the subject. http://www.codeproject.com/internet/SendTo.asp If you can
make any sense of it and it's useful let me know.

I'm going to try CMM's recommendation now to use MSMAPI32.ocx that he
gave in response to my first post.
Cor Ligthert [MVP] wrote:
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

"Al Reid" <ar*****@reidDASHhome.com> schreef in bericht
news:u6**************@TK2MSFTNGP02.phx.gbl...
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?

--
Al Reid
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:56**************@TK2MSFTNGXA01.phx.gbl...
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.)


May 2 '06 #12

P: n/a
"cj" <cj@nospam.nospam> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 2 '06 #13

This discussion thread is closed

Replies have been disabled for this discussion.