| |
 |
|
 |
| if ( isset($_REQUEST['fullname']) && (($_REQUEST['email']) != "") ) {
$fullname = $_REQUEST['fullname'];
$email = strtolower($_REQUEST['email']);
$hold = "Today's Date: " . date("F j, Y, g:i a") . "\n\n";
$hold .= "CONTACT INFORMATION\n\n";
$hold .= "Name: " . $_REQUEST['fullname'] . "\n";
$hold .= "E-mail: " . $_REQUEST['email'] . "\n";
$hold .= "Phone Number:" . $_REQUEST['phone'] . "\n";
$hold .= "Business:" . $_REQUEST['business_name'] . "\n";
$hold .= "Address:" . $_REQUEST['business_address'] . "\n";
$hold .= "City:" . $_REQUEST['business_city'] . "\n";
$hold .= "State:" . $_REQUEST['business_state'] . "\n";
$hold .= "Zip:" . $_REQUEST['business_zip'] . "\n";
$hold .= "Country:" . $_REQUEST['business_country'] . "\n\n";
require "class.phpmailer.php";
$smtp = new phpmailer();
$smtp->IsSMTP();
$smtp->Host = "localhost";
$smtp->IsHTML(false);
$smtp->From = "$email";
$smtp->FromName = "$fullname";
$smtp->AddAddress("howard@swingscience.net","howard");
$smtp->AddBCC("mike.sauce@lycos.com","mike");
$smtp->Subject = "Tour Shop Application Form";
$smtp->Body = $hold;
if (!$smtp->Send()) {
echo "\n";
?>
There was an error transmitting your registration. Please contact Swing Science if
you continue to receive this error!
} else { ?>
THANK YOU FOR YOUR APPLICATION.
Please notify Swing Science if you have any questions regarding your application.
}
$smtp = NULL;
unset($smtp);
} else {
?>
} ?>
|
| |
|
|
| |
|
|
|
|
|