Пример #1
0
 echo $client_named = ucwords($abcd);
 $d_o_b = $getdata->GetInfoPlantiffInformation("p_d_o_b", $form_id);
 $home_phone = $getdata->GetInfoPlantiffInformation("p_home_no", $form_id);
 $work_phone = $getdata->GetInfoPlantiffInformation("p_office_no", $form_id);
 $mob_no = $getdata->GetInfoPlantiffInformation("p_mob_no", $form_id);
 $dfirst_name = ucwords($getdata->GetObjectById($doctor_id, "first_name"));
 $dlast_name = ucwords($getdata->GetObjectById($doctor_id, "last_name"));
 $case_type = $getdata->Getcidbyformid($form_id);
 $message = "";
 $message .= '<html><body>';
 $message .= '<table rules="all" cellpadding="0" cellspacing="5" border="0" style="font-size:17px;color:#000; border:1px solid #0665be; border-radius:5px;">';
 $message .= '<tr><td align="center"><img src="https://' . $_SERVER['HTTP_HOST'] . '/images/logo.png" alt="From Mayo to Doctor – Upload Reports" /></td></tr>';
 $message .= '<tr><td style="background: none repeat scroll 0 0 #3a9df8;border-top-left-radius: 5px;border-top-right-radius: 5px;color: #fff;font: 15px MemphisLTStd-Medium;padding: 15px 0;text-align: center;border-left:1px solid #0665be;border-right:1px solid #0665be;"><h1>From Mayo to ' . $dfirst_name . '' . $dlast_name . ' – Waiting on Operative Report</h1></td></tr>';
 $message .= '<tr><td align="center"><h2 style="color:#f6801f;">' . $getdata->getNameCase($case_type) . '</h2></td></tr>';
 $message .= '<tr><td><h2> Dear Dr. ' . $dfirst_name . ' ' . $dlast_name . '</h2></td></tr>';
 $message .= '<tr><td align="center">Our records indicates that your office performed a ' . $getdata->GetAppById($app_type) . ' On Date: ' . $e . 'at' . $f . '.</td></tr>';
 $message .= '<tr><td><table cellpadding="0" cellspacing="2" border="0" width="60%" style="color:#000"><tr><td><strong>Client Name:</strong></td><td><strong>' . $client_named . '</strong></td></tr> <tr><td><strong>Home Phone:</strong></td><td><strong>' . $home_phone . '</strong></td></tr><tr><td><strong>Work Phone:</strong></td><td><strong>' . $work_phone . '</strong></td></tr><tr><td><strong>Cell Phone:</strong></td><td><strong>' . $mob_no . '</strong></td></tr></table></td></tr>';
 $message .= '<tr><td>We have not received the Operative Report.</td></tr>';
 $message .= '<tr><td>Please LOGIN to mayosurgical.com and UPLOAD the needed documents.</td></tr>';
 $message .= '<tr><td>You may also fax to 800-865-8691 if needed.</td></tr>';
 $message .= '<tr><td>Thank You,</td></tr>';
 $message .= '<tr><td>Mayo Surgical, LLC</td></tr>';
 $message .= '<tr><td>DO NOT REPLY TO THIS MESSAGE. THIS EMAIL IS NOT MONITORED to automatically generated emails.</td></tr>';
 echo $message .= '</table>';
 $subject = "Please Upload the Operative Report";
 $headers = "From: Mayo Surgical\r\n";
 $headers .= "Reply-To: mayosurgical.com\r\n";
 $headers .= "MIME-Version: 1.0\r\n";
 $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
 if (mail($emails, $subject, $message, $headers)) {
     echo 'Your message has been sent.';