Forum Moderators: phranque

Message Too Old, No Replies

What is the code to send page by email?

         

naitsirhc26

5:15 am on Jul 26, 2006 (gmt 0)

10+ Year Member



When you click, send page by email, when you are browsing, does it just send the whole pages code as an email?

naitsirhc26

5:21 am on Jul 26, 2006 (gmt 0)

10+ Year Member



What I am trying to say is, I want to enter this code into my email manually. How would I do this? I am dying to know. What is the code, something like, <display="http://www.thesite.com"> I have no clue as to what it is. If you were to write code, wouldn't it just send the code as text, and not as html?

naitsirhc26

6:07 am on Jul 26, 2006 (gmt 0)

10+ Year Member



[URL:www.thewebsite.com] Is this how you embed it?

jessejump

8:21 pm on Jul 26, 2006 (gmt 0)

10+ Year Member



That would involve a script - search for email this page kind of thing.

Jim Catanich

3:17 pm on Aug 1, 2006 (gmt 0)

10+ Year Member



I use the following to do this. It is in JavaScript so it should work anytime.

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function initMail(form) {
text = "Check out this page: " + window.location;
form.message.value = "Hi " + form.sendto.value + " (" + form.to.value + "):\n\n"
+ text + "\n\nYour Friend,\n" + form.sendername.value + "(" + form.senderemail.value + ")";
return (form.to.value!= "");
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>
<form name=emailform method=post action="http://cgi.freedback.com/mail.pl" target="_new" onSubmit="return initMail(this);">
<input type=hidden name=subject value="** Check Out This Site! **">
<input type=hidden name=message value="">
<table>
<tr><td colspan=2 align=center>Tell a friend about this page!</td></tr>
<tr><td>Their Name:</td><td><input type=text name=sendto></td></tr>
<tr><td>Their Email:</td><td><input type=text name=to></td></tr>
<tr><td>Your Name:</td><td><input type=text name=sendername></td></tr>
<tr><td>Your Email:</td><td><input type=text name=senderemail></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Ok!"></td></tr>
</table>
</form>
</center>

************************************************

But to create your own, create the form above and pass the 4 fields and the "Referer" link to a CDO Email based page.

The magic is sending the "referer link", everything else is just a CDO Email object based form.

Good reference link is [paulsadowski.com...]

**********************************************
Jim Catanich