"send page by e-mail"

J

Jason Steeves

I need to replicate the code that is found in Internet Explorer File->send
page by e-mail. Can someone tell me how to replicate this code or just call
this function. I need to program it to be activated by a button on my .aspx
page......Thanks, Jason
 
A

Aaron Bertrand [SQL Server MVP]

I need to replicate the code that is found in Internet Explorer File->send
page by e-mail. Can someone tell me how to replicate this code or just
call
this function. I need to program it to be activated by a button on my
.aspx
page...

This is fairly trivial, basically if you think about presenting content from
a variable, e.g.

myBody = "<html><head><title>..."
response.write myBody
....

Then you could also do

myBody = "<html><head><title>..."
mailObject.Body = myBody
....

(An easier way would be to e-mail the URL to the page, since not many people
*want* craploads of HTML in their inbox, YMMV.)

For ASPX-specific techniques, please visit an ASP.NET newsgroup. They have
"dotnet" as part of their name...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top