Thanks for registering. We'll be in touch soon!
";
// Now send the email:
$comments = stripslashes($comments);
$myname = "$fname $lname";
$myemail = "$email";
$contactname = "Paul Grabowicz";
$contactemail = "shacker@uclink.berkeley.edu";
// Turn binary responses into english
if ($march28 == 1) {
$march28="yes";
} else {
$march28="no";
}
if ($march29 == 1) {
$march29="yes";
} else {
$march29="no";
}
if ($april30 == "1") { $april30 = "yes"; } else {$april30 = "no"; }
if ($may1 == "1") { $may1 = "yes"; } else {$may1 = "no"; }
$message = "
Name: $fname $lname <$email>
April 30: $april30
May 1: $may1
Organization: $organization
Title: $title
Comments:
$comments
";
$subject = "China's Digital Future Conference Registration";
include_once("phpmailer/class.phpmailer.php");
$mail = new phpmailer();
// $mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "rosebud.journalism.berkeley.edu;library.berkeley.edu"; // specify main and backup server
$mail->SMTPAuth = false ; // turn on SMTP authentication
$mail->Username = "username"; // SMTP username
$mail->Password = "pass";// SMTP password
$mail->From = "$email";
$mail->FromName = "$fname $lname";
$mail->AddReplyTo("$email","$fname $lname");
$mail->AddAddress("cdfberkeley@yahoo.com"); // name argument is optional
$mail->WordWrap = 70; // set word wrap to 70 characters
//$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg"); // optional name
$mail->IsHTML(false); // set email format to HTML
$mail->Subject = "New ChinaDF Registrant";
$mail->Body = "$message";
//$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
if(!$mail->Send())
{
echo "Message could not be sent.
";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
} else {
?>
Conference Registration
To register fill out the form below.
The conference will be held in the afternoon of Friday, Apirl 30, and the
whole day on Saturday, May 1, 2004.
All conference activities are free of charge, but registration is
required to ensure seating for all attendants.
This event is over, and no further registrations will be processed.