field_email[0][‘value’];
if(!$to) {
$to = “vinayras@gmail.com”;
}
$title = $pageObj->title;
$link = url(“node/$page”);
$contact_name = $_POST[“contact_name”];
$contact_email = $_POST[“contact_email”];
$contact_phone = $_POST[“contact_phone”];
$contact_message = $_POST[“contact_message”];
$msg = “Greeting
$contact_name is interested in your Classified Ad ‘$title’ post on NagpurPulse.com
Contact Details of $contact_name
Email: $contact_email
Phone: $contact_phone
Message:
$contact_message
Link to your Classified
http://www.nagpurpulse.com$link
NagpurPulse.com – The Pulse of Nagpur
This is an automated message. Please do not reply.
“;
$subject = “Response to $title”;
//$to = “vinayras@gmail.com”;
drupal_mail(“classified-contact”, $to, $subject, $msg);
if($page) {
//drupal_goto(“node/$page”);
}
?>