include("dbconnect.php") ?> if (isset($_POST["email"])) { //ini_set('SMTP', 'sendmail4.brinkster.com'); //$recipient = 'patsplat2@yahoo.com'; //$recipient = 'tcolton@nycfuture.org,eipics@aol.com'; $subject = 'Web site comment submission'; $from = stripslashes($_POST["email"]); $msg_body = 'Name: ' . stripslashes($_POST["name"]) . ' Email: ' . stripslashes($_POST["email"]) . ' Comments: ' . stripslashes($_POST["comments"]); //mail($recipient, $subject, $msg_body, "From: $from"); require("c:\php\includes\class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "mail.eileencolton.com"; $mail->SMTPAuth = true; $mail->Username = "web@eileencolton.com"; $mail->Password = "bruce"; $mail->From = stripslashes($_POST["email"]); $mail->FromName = stripslashes($_POST["email"]); //$mail->AddAddress("tcolton@nycfuture.org" ); //$mail->AddAddress("eipics@aol.com" ); $mail->AddAddress("patrick@mutualaid.org" ); $mail->IsHTML(true); $mail->Subject = $subject; $mail->Body = $msg_body; if(!$mail->Send()) { echo "Message could not be sent.
"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } //echo "Message has been sent"; } ?> //get section text $qry_section_text = "SELECT name, abstract FROM tbl_sections WHERE section_id = 7"; $qry_section = mysql_query($qry_section_text); if (!$qry_section) { die('Invalid query: ' . mysql_error()); } ?> include("layout_start.php") ?> if (isset($_POST["email"])) { ?> Thanks for your comments! If you expressed interest in ordering prints, we'll be in touch soon! } else { ?> //check to see if you're logged in if (isset($_COOKIE["user"])) { //display the link to the admin tools echo'