“specialEvents.html” below
[code]
First Name * | |
Last Name * | |
Email Address * | |
Phemale Vocalist | |
Male Vocalist | |
Lead Guitar | |
Rhythm Guitar | |
Bass Guitar | |
Drums | |
Keyboards | |
“sendallstarband.php” below
[php]
<?php if(isset($_POST["email"])) { require("PHPMailer_v2.0.4\class.phpmailer.php"); $mail = new PHPMailer(); //////////////////////////////////////////////////////////////// // Customize the following 5 lines with your own information. // //////////////////////////////////////////////////////////////// $toaddress = "[email protected]"; //Change this to the email address you will be receiving your notices. $mailhost = "mail.phoenixhill.com"; //Change this to your actual Domain name. $fromaddress = "[email protected]"; //Change this to the email address you will use to send and authenticate with. $frompwd = "a2393055"; //Change this to the above email addresses password. $subject = "All Star Band 2012"; //Change this to your own email message subject. ////////////////////////////////////////// // DO NOT CHANGE ANYTHING PAST THIS LINE// ////////////////////////////////////////// $fromname = $_POST["Tfirst_name"]; $rplyto = $_POST["Temail"]; $last_name = $_POST['Tlast_name']; // required $phemale_vocalist = $_POST['Tphemale_vocalist']; // not required $male_vocalist = $_POST['Tmale_vocalist']; // not required $lead_guitar = $_POST['Tlead_guitar']; // not required $rhythm_guitar = $_POST['Trhythm_guitar']; // not required $bass_guitar = $_POST['Tbass_guitar']; // not required $drums = $_POST['Tdrums']; // not required $keyboards = $_POST['Tkeyboards']; // not required $msgbody = "Name:" . $fromname; $mail->IsSMTP(); $mail->Host = $mailhost; $mail->SMTPAuth = true; $mail->Username = $fromaddress; $mail->Password = $frompwd; $mail->From = $fromaddress; $mail->FromName = $fromname; $mail->AddReplyTo($rplyto); $mail->AddAddress($toaddress); $mail->IsHTML(true); $mail->Subject = $subject; $mail->Body = $msgbody; if(!$mail->Send()) { echo "Message could not be sent."; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Thank you, your message has been sent!"; } ?>[/php]