By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,853 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,853 IT Pros & Developers. It's quick & easy.

"send page by e-mail"

P: n/a
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
Jul 25 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="my****@mydomain.com"
myMail.To="so*****@somedomain.com"
myMail.CreateMHTMLBody "http://www.w3schools.com/asp/"
myMail.Send
set myMail=nothing
%>Source: http://www.w3schools.com/asp/asp_send_email.aspRay at work"Jason
Steeves" <Ja**********@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
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

Jul 25 '05 #2

P: n/a
>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...
Jul 25 '05 #3

P: n/a
First reply was a bit unreadable...

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="my****@mydomain.com"
myMail.To="so*****@somedomain.com"
myMail.CreateMHTMLBody "http://www.w3schools.com/asp/"
myMail.Send
set myMail=nothing
%>

Source: http://www.w3schools.com/asp/asp_send_email.asp

Ray at work

"Jason Steeves" <Ja**********@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
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

Jul 25 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.