Email Web page

  • Thread starter Thread starter Richard Grene
  • Start date Start date
Richard,

* "Richard Grene said:
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?
 
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 = "(e-mail address removed)"
.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
(e-mail address removed)
 
How can Icache a copy of the page in HTML and insert the
cached copy into the body of the message?
 
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
 
Back
Top