Home All Groups Group Topic Archive Search About
Author
31 Aug 2006 10:42 PM
KatMagic
I took the following code sample from an article about sending email via
asp.net.  The error I get says:  System.ComponentModel.Win32Exception: No
application is associated with the specified file for this operation

So what am I missing?  This is the code:

Dim strURL as String =
"mailto:***@somewhere.com?Cc:R***@righthere.com&Subject:
Using Mailto to send mails&Body:this is a test" Process.Start(strURL)

Author
31 Aug 2006 11:27 PM
Mark Rae
"KatMagic" <SSKatMa***@yahoo.com> wrote in message
news:OG1c35UzGHA.4448@TK2MSFTNGP04.phx.gbl...

> I took the following code sample from an article about sending email via
> asp.net.  The error I get says:  System.ComponentModel.Win32Exception: No
> application is associated with the specified file for this operation
>
> So what am I missing?  This is the code:
>
> Dim strURL as String =
> "mailto:***@somewhere.com?Cc:R***@righthere.com&Subject:
> Using Mailto to send mails&Body:this is a test" Process.Start(strURL)

mailto: basically just tries to find the default mail client on the local
machine and initiate a new email, populating two or three of the standard
mail parts...

What is the default mail client on the machine in question...?
Author
1 Sep 2006 12:23 AM
KatMagic
I thought it was something like that.  There is no mail client on the web
server, I want it to open the mail client Outlook on the client.  How would
I do that?


Show quote
"Mark Rae" <mark@markNOSPAMrae.com> wrote in message
news:Oi5xCUVzGHA.1292@TK2MSFTNGP03.phx.gbl...
> "KatMagic" <SSKatMa***@yahoo.com> wrote in message
> news:OG1c35UzGHA.4448@TK2MSFTNGP04.phx.gbl...
>
>> I took the following code sample from an article about sending email via
>> asp.net.  The error I get says:  System.ComponentModel.Win32Exception: No
>> application is associated with the specified file for this operation
>>
>> So what am I missing?  This is the code:
>>
>> Dim strURL as String =
>> "mailto:***@somewhere.com?Cc:R***@righthere.com&Subject:
>> Using Mailto to send mails&Body:this is a test" Process.Start(strURL)
>
> mailto: basically just tries to find the default mail client on the local
> machine and initiate a new email, populating two or three of the standard
> mail parts...
>
> What is the default mail client on the machine in question...?
>
Author
1 Sep 2006 5:22 AM
sloan
Huh?

If you want a new email to pop up on the client.  Use an href

http://www.ianr.unl.edu/internet/mailto.html

I don't think you want an blank email to popup on the server.

...

If you want the server to SEND an email.... then
http://sholliday.spaces.live.com/  2/8/2006 entry

Show quote
"KatMagic" <SSKatMa***@yahoo.com> wrote in message
news:%23zxn$xVzGHA.2516@TK2MSFTNGP06.phx.gbl...
> I thought it was something like that.  There is no mail client on the web
> server, I want it to open the mail client Outlook on the client.  How
would
> I do that?
>
>
> "Mark Rae" <mark@markNOSPAMrae.com> wrote in message
> news:Oi5xCUVzGHA.1292@TK2MSFTNGP03.phx.gbl...
> > "KatMagic" <SSKatMa***@yahoo.com> wrote in message
> > news:OG1c35UzGHA.4448@TK2MSFTNGP04.phx.gbl...
> >
> >> I took the following code sample from an article about sending email
via
> >> asp.net.  The error I get says:  System.ComponentModel.Win32Exception:
No
> >> application is associated with the specified file for this operation
> >>
> >> So what am I missing?  This is the code:
> >>
> >> Dim strURL as String =
> >> "mailto:***@somewhere.com?Cc:R***@righthere.com&Subject:
> >> Using Mailto to send mails&Body:this is a test" Process.Start(strURL)
> >
> > mailto: basically just tries to find the default mail client on the
local
> > machine and initiate a new email, populating two or three of the
standard
> > mail parts...
> >
> > What is the default mail client on the machine in question...?
> >
>
>
Author
1 Sep 2006 6:42 PM
KatMagic
I want my web-based app to open a blank email from the client when the user
clicks on a button.  I want to be able to fill in the blanks of the email
depending on information the user plugs in from the web-based app, then the
email to open up so they can either cancel the email or send it themselves.
href won't do that, I believe??

Show quote
"sloan" <sl***@ipass.net> wrote in message
news:evbqaWYzGHA.3424@TK2MSFTNGP03.phx.gbl...
>
> Huh?
>
> If you want a new email to pop up on the client.  Use an href
>
> http://www.ianr.unl.edu/internet/mailto.html
>
> I don't think you want an blank email to popup on the server.
>
> ..
>
> If you want the server to SEND an email.... then
> http://sholliday.spaces.live.com/  2/8/2006 entry
>
> "KatMagic" <SSKatMa***@yahoo.com> wrote in message
> news:%23zxn$xVzGHA.2516@TK2MSFTNGP06.phx.gbl...
>> I thought it was something like that.  There is no mail client on the web
>> server, I want it to open the mail client Outlook on the client.  How
> would
>> I do that?
>>
>>
>> "Mark Rae" <mark@markNOSPAMrae.com> wrote in message
>> news:Oi5xCUVzGHA.1292@TK2MSFTNGP03.phx.gbl...
>> > "KatMagic" <SSKatMa***@yahoo.com> wrote in message
>> > news:OG1c35UzGHA.4448@TK2MSFTNGP04.phx.gbl...
>> >
>> >> I took the following code sample from an article about sending email
> via
>> >> asp.net.  The error I get says:  System.ComponentModel.Win32Exception:
> No
>> >> application is associated with the specified file for this operation
>> >>
>> >> So what am I missing?  This is the code:
>> >>
>> >> Dim strURL as String =
>> >> "mailto:***@somewhere.com?Cc:R***@righthere.com&Subject:
>> >> Using Mailto to send mails&Body:this is a test" Process.Start(strURL)
>> >
>> > mailto: basically just tries to find the default mail client on the
> local
>> > machine and initiate a new email, populating two or three of the
> standard
>> > mail parts...
>> >
>> > What is the default mail client on the machine in question...?
>> >
>>
>>
>
>
Author
1 Sep 2006 6:53 PM
Mark Rae
"KatMagic" <SSKatMa***@yahoo.com> wrote in message
news:%233adPYfzGHA.3304@TK2MSFTNGP05.phx.gbl...

>I want my web-based app to open a blank email from the client when the user
>clicks on a button.  I want to be able to fill in the blanks of the email
>depending on information the user plugs in from the web-based app, then the
>email to open up so they can either cancel the email or send it themselves.
>href won't do that, I believe??

I think I'm missing the point here...

Are you saying that you have a webform with fields like To: Cc: Bcc:
Subject: and Message:? The user fills in these fields as required, and then
you simply want to send the email?

If so, then I don't understand where Outlook fits into the solution...
Author
1 Sep 2006 7:24 PM
KatMagic
Well, there's more to it than that for other reasons, but basically, that's
it.  The user wants to be able to modify the msg from outlook before it is
sent, so they have the option to send it or not to send it, plus the
advantage of them having the actual message retained in their sent folder.

Thanks for all you rhelp.


Show quote
"Mark Rae" <mark@markNOSPAMrae.com> wrote in message
news:ungduffzGHA.4796@TK2MSFTNGP06.phx.gbl...
> "KatMagic" <SSKatMa***@yahoo.com> wrote in message
> news:%233adPYfzGHA.3304@TK2MSFTNGP05.phx.gbl...
>
>>I want my web-based app to open a blank email from the client when the
>>user clicks on a button.  I want to be able to fill in the blanks of the
>>email depending on information the user plugs in from the web-based app,
>>then the email to open up so they can either cancel the email or send it
>>themselves. href won't do that, I believe??
>
> I think I'm missing the point here...
>
> Are you saying that you have a webform with fields like To: Cc: Bcc:
> Subject: and Message:? The user fills in these fields as required, and
> then you simply want to send the email?
>
> If so, then I don't understand where Outlook fits into the solution...
>
Author
1 Sep 2006 7:46 PM
Mark Rae
"KatMagic" <SSKatMa***@yahoo.com> wrote in message
news:%23v8IjvfzGHA.1256@TK2MSFTNGP04.phx.gbl...

> Well, there's more to it than that for other reasons, but basically,
> that's it.  The user wants to be able to modify the msg from outlook
> before it is sent, so they have the option to send it or not to send it,
> plus the advantage of them having the actual message retained in their
> sent folder.

> Thanks for all your help.

OK - lateral thinking and one step back here...

1) Is having a copy of the email in the users' Sent Items folder the *only*
reason for using Outlook? If so, how about putting the sender's email
address in the Bcc: field so they always get a copy of the email...? You
could even create an Outlook rule which marks these emails as read and moves
them directly into the users' Sent Items folder... :-)

2) Are the users using Outlook to connect to an Exchange server, or with
POP3 mail accounts? If the former, it is possible to interface IIS and
Exchange. However, it's complex and will probably involve you a great deal
of work for very little benefit.

3) If this is deployed as part of an intranet system where you can control
the security, and every user uses Microsoft IE as their web browser, you
could develop an ActiveX control which could manipulate Outlook client-side
via Office Automation and do your thang. Again, probably a huge amount of
work...

AddThis Social Bookmark Button