$val) // form inputs { global ${$key}; ${$key} = $val; } foreach ($_REQUEST as $key => $val) { global ${$key}; ${$key} = $val; } $mysqli = new mysqli("localhost", "washme_public", "qJa42r7Vf89ZQUJm", "washme"); // needed to check login before includes $sid = $_COOKIE['sid']; include("../includes/common_functions.php"); include("../includes/config.php"); include("../includes/email_config.php"); ?> Lower Mainland and Fraser Valley Property Maintenance and Cleaning Services - Service Notification eMail

Service Notification


"; $notification = send_service_notification($mysqli, $job_id, $servicedate, $subject, $def_name, $def_email, $appt_reminder_text, $not_at_home, $collect_payment, $email_sig_text, $email_sig_html, $preview);// trailing 1 indicates preview switch($notification) { case -1: echo "

Missing or invalid email address

"; break; case -2: echo "

Missing or invalid name

"; break; case -3: echo "

There may have been an error sending email

"; break; case -4: echo "

The Notification has been sent however it was not logged due to missing data

"; break; case -5: echo "

The Notification has been sent however it was not logged due to an incorrect query

"; break; case 1: echo "

The Notification has been sent and logged succesfully

"; break; default: echo "

========== Message Preview ===========

" . $notification . "

"; echo "

Send Now"; break; } ?>