/* * Punchscan - High Integrity Voting System * Copyright (C) 2006 Richard Carback, David Chaum, Jeremy Clark, * Aleks Essex, Stefan Popoveniuc, and Jeremy Robin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ ?> 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 } else { ?>
} include("footer.inc"); ?>