I welcome you to contact me by telephone or through my Web site. Share your concerns and questions about the issues that matter to Ward One.
Telephone: 978-927-5681
Email Form:
Please fill in the Web form below. Fields marked * are required.
Fields marked * are required.
";
$to = $email;
$from = str_replace("\\'", "'", $from);
$dear = str_replace("\\'", "'", $from_name);
$subject = str_replace("\\'", "'", $subject);
$message = stripslashes(str_replace("\\'", "'", $message));
//this is customizes the subject of the email by adding something BEFORe what they entered in the subject field.
// It is defined in the script beginning as $SubjectPrefix.
$finalsubject = "$SubjectPrefix: $subject";
//finally to tweak up the body of the email buy using their message and then adding the ip address and time of send.
$finalmessage = "$message
Telephone: $from_phone
Address: $from_address
Preferred Method of Contact: $preferredcontact
------------------------------------------------------------------------------
MESSAGE Sent: $datesent";
//finally you have PHP send the mail...
mail($to, $finalsubject, $finalmessage, "From: $from\nX-Mailer: Maureen Troubetaris");
//last but not least we close up the PHP script and THEN Tell the user that their email was sent successfully.
// NOTE: the following success text also doesn't show up unless the $sendEmail variable is defined.
?>
Dear print "$dear"; ?>,
Your message has been sent. I will respond, if applicable, by your preferred method of contact, within a reasonable amount of time.