Thankyou

[insert_php]
$timestamp = time();
require_once “Mail.php”;

if ($_SERVER[‘REQUEST_METHOD’] === ‘POST’) {

if ($_POST[‘rating’] > 4) {

echo “

“;
echo”

Please choose a site for your review

“;

echo”

“;

echo”

“;

}
else{

echo”

Doctor Reinders reads every review

“;
}
// send email with review form fields regardless of star rating

/*
$from = “CFE reviews “;
$host = “mail.completeeyecaremn.com”;
$port = “25”;
$username = “reviews@completeeyecaremn.com”;
$password = “w!sePlay15”;
*/

$from = “CFE reviews “;
$host = “mail.leverageyourtimeandmoney.com”;
$port = “25”;
$username = “support@leverageyourtimeandmoney.com”;
$password = “[Zd&E$adMU*C”;

$auth = false;
$to = “Moi “;
$subject = “CFE: A patient has submitted a review”;
$body = $body . “Patient Name: ” . $ptName . “\n”;
$body = $body . “Rating: ” . $rating . “\n”;
$body = $body . “Comments: ” . $comments;

$headers = array (‘From’ => $from,
‘To’ => $to,
‘Subject’ => $subject);
$smtp = Mail::factory(‘smtp’,
array (‘host’ => $host,
‘port’ => $port,
‘auth’ => $auth,
‘username’ => $username,
‘password’ => $password));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
echo(“

” . $mail->getMessage() . “

“);
} else {
echo(“

Message successfully sent!

“);
}

}

[/insert_php]