Email
|
|
|
|
<? // ##################################################
// TipMail v. 0.2
// This send-to-friend-script is written by Mikke
// Schir�n. You may freely use it wherever you like.
// Questions: mikke@mikke.net.
// Just paste or include this code inside your php-page
// where you would like it to be.
// The script will insert the right URL automatic.
// You just need to configure the $SiteName and
// $MailSubject variables.
// ##################################################
if ($Tip =="1")
{ $SiteName = "Your site"; /*Write your sites name here*/ $MailSubject = "Check out this page!"; /*The subject of the email*/ $MessageText = "Hi.n$FromPerson has recommended that you check out this page at $SiteName:n$HTTP_HOST$SCRIPT_NAMEnnThis page was sent using our send-to-friend service.nYour email address has not been added to any list of any sort,nand has not been recorded at our site.";
echo "<p>Thanks for spreading the word! Your email has been sent to $ToEmail.</p>"; mail("$ToEmail", "$MailSubject", "$MessageText", "From: $FromPerson <$FromEmail>rnReply-To: $FromPerson <$FromEmail>rn" );
}
else
echo "n"; ?>
<form method="post" action="<?php $PHP_SELF; ?>">
<p>
Your name: <input type="text" name="FromPerson" size="14" tabindex="1" />
</p>
<p>
Your email: <input type="text" name="FromEmail" size="14" tabindex="2" />
</p>
<p>
Friends email:
<input type="text" name="ToEmail" size="14" tabindex="3" />
</p>
<input type="hidden" name="Tip" value="1" />
<input type="submit" value="submit!" name="SUBMIT" tabindex="4" />
<br />
<input type="reset" value="reset" name="RESET" tabindex="5" />
</form>
|
|
|
Usage Example
|
|
|
Rate This Script
|
|
|
|