You wouldn't do what you are asking in an ASP.NET application at all.
An ASP.NET application's code runs on the server, not the client (where an
email client would be located) so there's no way to have server-side code
launch a client-side application.
Since users can use any client (browser) to utilize your ASP.NET application
and different browsers come with different email clients (IE comes with
Outlook Express and Netscape comes with its own email client, for example),
even your client-side code (JavaScript) can only *ask* the client (browser)
to launch a new email. The client will do this in whatever email client it
is configured to use (and there is no guarantee that this program will be
Outlook).
The only situation I can see where this would work 100% of the time is one
where you know for sure that each of your visitors will have Outlook and
that their web client has been configured to use Outlook as the default
program to handle email (an intranet). But, even in intranets, there is
always someone who downloads Firefox or Mozilla because they prefer it to
the company choice of IE.
What this leaves you with is 2 choices:
1. Create a web page that contains a form for users to fill out (this form
acts as the email template) and the data is sent via email through your
server-side code.
2. Use the traditional HTML "mailto:" in your client-side code (are you
really running into emails longer than 512 chars?).
<xi********@gmail.comwrote in message
news:11**********************@t69g2000cwt.googlegr oups.com...
Is there a way to create an New Outlook Email from an ASP.NET
application? I can not use "mailto:", since it is only support a
string less than 512. I have find a good way from link :
http://zones.advisor.com/doc/17330 , that thread show how to create a
new appointment instead of email. but I have no idea about the format
of a new email. Does any one know the format of a new outlook email
i.e.
Response.ContentType = "text/XXXXXX"
Response.AppendHeader("content-disposition", "inline;
filename=oneEmail.XXXXX")
and the body of the file
Thanks
Lu