473,324 Members | 2,370 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,324 software developers and data experts.

Email Web page

What is the method for emailing current web page using Web Mail?

Thanks,
Richard
Nov 20 '05 #1
4 961
Richard,

* "Richard Grene" <rg****@s4si.com> scripsit:
What is the method for emailing current web page using Web Mail?


Please be more specific. What exactly do you want to do? Are you
talking about a web application?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
A general apprach is to get the referer
(Request.ServerVariable("HTTP_REFERER")) page and send it as a link. An
Alternate way would be to cache a copy of the page in HTML and insert the
cached copy into the body of the message.

BTW sending looks like this.

Dim obj_SMTPMessage As Mail.MailMessage = New Mail.MailMessage()
With obj_SMTPMessage
.Bcc = "XX*@XXX.com"
.Body = "THE BODY OF THE MESSAGE"

.BodyFormat = Mail.MailFormat.Html
.From = txtYourEmail.Text
.To = txtFriendsEmail.Text
.Subject = "Message from:> " & txtYourEmail.Text
End With
Mail.SmtpMail.SmtpServer = "192.168.1.254"
Mail.SmtpMail.Send(obj_SMTPMessage)

Bryan Martin
sp**@ahwayside.com
"Richard Grene" <rg****@s4si.com> wrote in message
news:Or********************@speakeasy.net...
What is the method for emailing current web page using Web Mail?

Thanks,
Richard

Nov 20 '05 #3
How can Icache a copy of the page in HTML and insert the
cached copy into the body of the message?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #4
For loading the documents us a filestream to store it in the cache if it
doesnt exist.
For caching see ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconcacheapis.htm

"Richard Grene" <rg****@s4si.com> wrote in message
news:eC**************@TK2MSFTNGP10.phx.gbl...
How can Icache a copy of the page in HTML and insert the
cached copy into the body of the message?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: John Scott | last post by:
I want to be able to put into the body of an email, the entire contents of a aspx page....with form fields filled out I know I could go through and get the values of all of the textboxes, radio...
5
by: Das | last post by:
Hi, I'm trying to email html page & that page also contains the images. I can do that when we send html page from ms outlook. But I want to attach page c# code & send the mail through smtp mail....
7
by: Martin | last post by:
Hi, I have a standard aspx page (form) that contains a few user controls. Upon form submission the page is validated. If validation passses then a text based email is sent. This is all working...
6
by: \jason via DotNetMonster.com\ | last post by:
currently i am doing a personal website and keep on changing the aspect... finally the finall decision is to have a login page (requirement in asp.net, vb.net) and the login with security part of...
3
by: srinivas | last post by:
Hi All, We are sending an html email from asp page.In the email we appended an image tag and the "src" attribute points an asp page in our server.Here when ever user read the email this image...
1
by: jerger | last post by:
I have not made a program or page from start yet. I have made modifications to our signoff asp pages like changing the questions, texts, shortening field lengths etc... I also have copied the files...
4
n8kindt
by: n8kindt | last post by:
ok, i've done quite a bit of research on my problem here. random "! " will appear in my email that i'm sending thru cdo. i've learned that this problem occurs when there are long lines of html (or...
0
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try {
3
by: anu b | last post by:
Hii I am using System.net.mail for sending email... i need to send a webpage with its html content as my email body .....for that i used mail.Isbodyhtml as true...but it is not working for me...
8
by: nargis2009 | last post by:
Hi, I have been encountering problems with my web page which is supposed to send email, and wondered if anybody can help find error. Initially I had all codes in one page and on click of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.