Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send html page

Status
Not open for further replies.

Mojster

Programmer
Sep 26, 2001
18
SI
How can I send html page on email address?
 
If you mean, how can you send an HTML email, you could try this...
Code:
<%
Dim strEmailBody
Dim objEmail

strEmailBody = "<HTML>" & vbcrlf & _
               "<HEAD>" & vbcrlf & _
               "</HEAD>" & vbcrlf & _
               "<BODY>" & vbcrlf & _
               "your HTML content here" & vbcrlf & _
               "</BODY>" & vbcrlf & _
               "</HTML>" & vbcrlf

Set objEmail = CreateObject("CDONTS.NewMail")

With objEmail
  .MailFormat = CdoMailFormatMIME
  .BodyFormat = CdoBodyFormatHTML
  .from = "from_address@abc.com"
  .to = "to_address@def.com"
  .cc = "cc_address@def.com"
  .subject = "Your Email Subject Here"
  .body = strEmailBody
  .Send
End With

Set objEmail = Nothing
%>

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
But how can I put the source code of html page in strEmailBody?
 
OK - now I know what you're trying to do. How about just using the menu option in Internet Explorer:

File >> Send >> Page By Email...

Or do you want a link on your page that emails the page to a specified address? Explain exactly what you are trying to achieve.


Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
I have html page with 2 frames. In first frame are buttons, in second frame is one table and one button. I'd like to send only this table and a button via email.

Thank you very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top