hjkhhndndndnd,trt
bnmbertsu,yu,yu,fffffffy,ltdfg
/
home4
/
gofvotmy
/
public_html
/
sbspharmacypatti.org
/
Upload FileeE
HOME
<?php require_once "Mail.php"; $from = $_POST["Email"]; if ($from=="") $from="info@sbspharmacypatti.org"; $to = "info@sbspharmacypatti.org"; $subject = "Shaheed Bhagat Singh College of Pharmacy Enquiry Form : www.sbspharmacypatti.org"; $body = "<b>Shaheed Bhagat Singh College of Pharmacy Enquiry Form</b><br>"; $body .= "<br> Name: " . $_POST["name"]; $body .= "<br>Adress: " . $_POST["address"]; $body .= "<br>Contact / Mobile: " . $_POST["contact"]; $body .= "<br>Email: " . $_POST["email"]; $body .= "<br>Query: " . $_POST["query"]; $redirect = $_POST["redirect"]; $host = "smtp.gmail.com"; $port = "587"; $username = "info@sbspharmacypatti.org"; $password = "pass2011*"; $contenttype = "text/html"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject, 'Content-Type' => $contenttype); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { //echo("<p>Message successfully sent!</p>"); header("Location: $redirect"); exit; } ?>