What's missing?

  • Thread starter Thread starter KatMagic
  • Start date Start date
K

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:[email protected]?Cc:[email protected]&Subject:
Using Mailto to send mails&Body:this is a test" Process.Start(strURL)
 
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:[email protected]?Cc:[email protected]&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...?
 
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?
 
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 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...
 
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.
 
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...
 
Back
Top