View Full Version : How to "Email / Recommend this website"

12-22-2002, 06:40 PM
Does anyone have a script for the "recommend-our-site-to-your-friend" kind of box which can enable users to submit email directly to their friends?


12-22-2002, 06:47 PM
that would best be done using a server side language... does your host support any?

12-22-2002, 07:07 PM
Several @ hotscripts.com (http://hotscripts.com). If your host doesn't support asp/cgi/php, search there under remotely hosted.:D

12-23-2002, 01:07 AM
my server supports PHP.

Which is the best you can recommend thatI can use with php?

12-23-2002, 07:35 AM
They're all about the same. Take your pick.

Hi $friends_name !

$your_name thought you'd like this lame..er...great site! Check it out here!


$your_name left this note: Allllllrighty then!

Just make sure your host has the mail() enabled. :D

12-26-2002, 08:33 PM
this is going into PHP now but how would I send that as an e-mail? (putting it into the mail()?!)

12-26-2002, 08:46 PM
well... you'd make a form that sends the info to the php page you want to send the script and then use something like this...

var $message = "Hi ".$HTTP_POST_VARS['to_name'].",/n/n".$HTTP_POST_VARS['from_name']." has recomended this site to you... http://www.example.com";

mail($HTTP_POST_VARS['to_email'], 'Check out this site', $message, 'From: '.$HTTP_POST_VARS['from_email']);

written "on the fly"... hope it works... :thumbsup:

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum