|

|
|
We appreciate you taking the time to tell your friend about our
website. Thank you.
?>
';
}
else {
$headers = 'From: ' . $websiteName . '<' . $adminEmail . '>';
}
if ($_POST['friend_email1'] != "") {
$mailto1 = $_POST['friend_email1'];
//This tacs the name onto the subject line
$subject1 = $_POST['friend_name1'] . $subject;
//This tacs the name onto the message
$message1 = $_POST['friend_name1'] . "\r\n" . $_POST['message'];
myMailFunction($mailto1, $subject1, $message1, $headers, $defaultMessageClose, $adminEmail, $notice);
}
if ($_POST['friend_email2'] != "") {
$mailto2 = $_POST['friend_email2'];
//This tacs the name onto the subject line
$subject2 = $_POST['friend_name2'] . $subject;
//This tacs the name onto the message
$message2 = $_POST['friend_name2'] . "\r\n" . $_POST['message'];
myMailFunction($mailto2, $subject2, $message2, $headers, $defaultMessageClose, $adminEmail, $notice);
}
if ($_POST['friend_email3'] != "") {
$mailto3 = $_POST['friend_email3'];
//This tacs the name onto the subject line
$subject3 = $_POST['friend_name3'] . $subject;
//This tacs the name onto the message
$message3 = $_POST['friend_name3'] . "\r\n" . $_POST['message'];
myMailFunction($mailto3, $subject3, $message3, $headers, $defaultMessageClose, $adminEmail, $notice);
}
echo ($return);
}
?>
|
|

|