IsSMTP(); $mail->Host = "smtp.gmail.com"; $mail->Password = "crimson50"; $mail->Port = 587; $mail->SMTPAuth = true; $mail->SMTPSecure = "tls"; $mail->Username = "jharvard@cs50.net"; // set From: $mail->SetFrom("jharvard@cs50.net"); // set To: $mail->AddAddress("jharvard@cs50.net"); // set Subject: $mail->Subject = "registration"; // set body $mail->Body = "This person just registered:\n\n" . "Name: " . $_POST["name"] . "\n" . "Captain: " . $_POST["captain"] . "\n" . "Comfort: " . $_POST["comfort"] . "\n" . "Dorm: " . $_POST["dorm"]; // send mail if ($mail->Send() == false) { print($mail->ErrInfo); exit; } } else { header("Location: froshims-3.php"); exit; } ?> Frosh IMs You are registered! (Really.)