View Full Version : How to "Email / Recommend this website"
12-22-2002, 07: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, 07:47 PM
that would best be done using a server side language... does your host support any?
12-22-2002, 08: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, 02:07 AM
my server supports PHP.
Which is the best you can recommend thatI can use with php?
12-23-2002, 08: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, 09: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, 09: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:
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.