Exemplo n.º 1
0
                      </tr>';
$customerOrder = $objDispatch->getChangeCustomerOrder();
$email_body .= '
                      <tr>
                            <td style="text-align: justify; padding-bottom: 10px">' . $customerOrder . '</td>
                      </tr>
                      <tr>
                            <td><label><b>Changes to Prices from Price List</b></label></td>
                      </tr>';
$changePrice = $objDispatch->getChangePricesList();
$email_body .= '
                      <tr>
                            <td style="text-align: justify; padding-bottom: 10px">' . $changePrice . '</td>
                      </tr>
                
                     </table> ';
$content = ob_get_clean();
require_once '../includes/html2pdf/html2pdf.class.php';
$html2pdf = new HTML2PDF('P', 'letter', 'en');
$html2pdf->pdf->SetDisplayMode('fullpage');
$html2pdf->WriteHTML($content);
$html2pdf->Output('../pdf/dispatchReport.pdf', 'F');
$subject = "Dispatch Report " . ($hoy = date("F j, Y, g:i a"));
$objDispatch->sendReportEmail($email_body, $message, $subject);
?>