Forum Moderators: coopster

Message Too Old, No Replies

Email this page

         

stefansavva

2:13 am on Sep 1, 2003 (gmt 0)

10+ Year Member



Hi there,

Can anyone point me towards a script that will allow a user to email the current web page they are viewing?

Similar to the one used at Webmaster World but should email the actual HTML not just a link.

Many thanks,

jonknee

3:42 am on Sep 1, 2003 (gmt 0)

10+ Year Member



I don't know of one off hand--check hotscripts.com. But if you want to get a little code under your belt it's quite simple. Just stash the referrer in a variable, use that to fopen() the address and capture the HTML. Then just mail() it. Some things to watch out for:

* use ereg() or whatever you like for regex to make sure the referrer is from your site. Don't want to let everyone use it!
* Send the headers for the email as HTML. Otherwise you will see HTML in your mail reader.