473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

"send page by e-mail"

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
3 2272
<%
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
>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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kurda Yon | last post by:
Sorry for a very stupid question. Can you tell me what does the following html source does if I press button "Send"? If I read this code by Netscaspe from my local file system and then press...
3
by: Juputus | last post by:
Hi! How to create a homepage, in which you can send a message, the website shows on another webpage the message, so you can read it. I mean, how to create so a system, which you need? (databank...)...
2
by: Gary | last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)"); This is not working ..what could be the...
6
by: Gary | last post by:
Hi, I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)") This is not working ..what could be the...
4
by: Rvo | last post by:
Hi all, I need to use the Netware "send" function to send messages to some/all attached netware users on a server. However, I can't find any documentation on this topic on the Novell site or...
2
by: Omer Aziz | last post by:
I want to print a page. which is preformatted. i have to send values on different location of the page. eg date............ VoucherNo..........
1
by: jabdulius | last post by:
Hi all, newb to Perl here. I'm trying to use the Net:SNPP package to send a page, and getting the above error when trying to send. Here's my code: my $host = "snpp.cingular.com:444"; my $snpp =...
2
by: wpollans | last post by:
Hello, I need to able to write JS that will click on a link with the middle mouse button - so that the link target will open in a new window or tab - using firefox. Or is there a better (more...
3
ak1dnar
by: ak1dnar | last post by:
When I am sending a form Input like in this format using ajax to my ASP.Net page; term=ASP & PHP Using This JavaScript; function myFunc(term_from_form){ var qstring = "term="+term_from_form;...
6
by: babakandme | last post by:
Hi to every body...:D I'm a novice C++ programmer & I've a question, I have the ClassA & in it's constructor, I instantiate ClassB, and I want send "this" pointer """pointer to ClassA""" to the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.