Home All Groups Group Topic Archive Search About

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

Author
1 May 2006 7:03 PM
cj
What's the parameter (like ?attachment) or something.

Author
1 May 2006 7:13 PM
Herfried K. Wagner [MVP]
"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/>
Author
1 May 2006 7:21 PM
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:
Show quoteHide quote
> "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.
>
Author
2 May 2006 3:25 AM
Steven Cheng[MSFT]
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.)
Author
2 May 2006 11:10 AM
Al Reid
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


Show quoteHide quote
"Steven Cheng[MSFT]" <stch***@online.microsoft.com> wrote in message news:56bfJgZbGHA.4672@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.)
>
Author
2 May 2006 12:08 PM
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:
Show quoteHide quote
> 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]" <stch***@online.microsoft.com> wrote in message news:56bfJgZbGHA.4672@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.)
>>
>
>
Author
2 May 2006 12:13 PM
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:
Show quoteHide quote
> 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]" <stch***@online.microsoft.com> wrote in message
>> news:56bfJgZbGHA.4672@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.)
>>>
>>
>>
Author
2 May 2006 12:21 PM
Al Reid
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

Show quoteHide quote
"cj" <cj@nospam.nospam> wrote in message news:%234dvVHebGHA.2188@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]" <stch***@online.microsoft.com> wrote in message
> >> news:56bfJgZbGHA.4672@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.)
> >>>
> >>
> >>
Author
2 May 2006 1:42 PM
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:
Show quoteHide quote
> 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.
>
Author
2 May 2006 1:59 PM
Herfried K. Wagner [MVP]
"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/>
Author
2 May 2006 1:35 PM
Cor Ligthert [MVP]
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

Show quoteHide quote
"Al Reid" <arei***@reidDASHhome.com> schreef in bericht
news:u66RykdbGHA.3888@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]" <stch***@online.microsoft.com> wrote in message
> news:56bfJgZbGHA.4672@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.)
>>
>
>
Author
2 May 2006 1:50 PM
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:
Show quoteHide quote
> 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" <arei***@reidDASHhome.com> schreef in bericht
> news:u66RykdbGHA.3888@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]" <stch***@online.microsoft.com> wrote in message
>> news:56bfJgZbGHA.4672@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.)
>>>
>>
>
>