IsSMTP(); // send via SMTP $mail->Host = "smtp.cs.umbc.edu"; // SMTP servers $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "REDACTED"; // SMTP username $mail->Password = "REDACTED"; // SMTP password $mail->From = $_REQUEST['emailaddress']; $mail->FromName = $_REQUEST['name']; $mail->AddAddress("REDACTED","REDACTED"); /* $mail->AddAddress("ellen@site.com"); // optional name $mail->AddReplyTo("info@site.com","Information"); $mail->WordWrap = 50; // set word wrap $mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment $mail->AddAttachment("/tmp/image.jpg", "new.jpg"); $mail->IsHTML(true); // send as HTML */ $mail->Subject = $_REQUEST['subject']; $mail->Body = $_REQUEST['message']; //$mail->AltBody = "This is the text-only body"; if(!$mail->Send()) { echo "Message was not sent

"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Message has been sent - "; ?> Send Another

Contact Us