The first point to make is that mailto: is not covered by internet standards
and is generally considered bad practice for anything other than a simple
"contact me" link. For instance, it won't work if the user uses webmail or
hasn't properly configured the default email client.
specifying the body text as part of the link only works with certain
combinations of browser and mail client (IIRC it works in with IE and
Outlook Express but not Outlook)
my preference would normally be to send the email from the server (in
asp.net use System.Web.Mail). however, this does assume that your server has
access to an smtp server that can send the mail.
if you want to use mailto with dynamically generated text, and
response.redirect doesn't work, my next best guess would be to use something
like:
<body onload='document.location.href="mailto:blah blah<%=the server
generated content"%>'>
I haven't tested it so I don't know if that would work, but if it doesn't, I
can't think of any solution.
Andy
"Brian" <br***********@gmail.com> wrote in message
news:eq*************@TK2MSFTNGP10.phx.gbl...
Hi,
I want to issue mailto from one of my pages. Basically to drop contact
information from a from to the body of the email and have the user enter
the desired address to send it to. I thought that I could use
response.redirect for this, but I get a "the page could not be displayed"
error in my window and not the outlook window. I am initiating this from
the onclick of a button. It does work with a HyperlinkButton, but I need
to build the mailto content before issuing the command.
Any Suggestions? Am I going about this the right way?
Brian