// Get the contents of the pdf into a variable for later
ob_start();
//require_once("sendmail/pdf.php");
require_once("../sendmail/pdf_tour.php");
$pdf_html = ob_get_contents();
print_r($pdf_html);
ob_end_clean();
// Get the contents of the pdf into a variable for later
ob_start();
//require_once("sendmail/pdf.php");
require_once("../sendmail/pdf_tour_client.php");
$pdf_html_client = ob_get_contents();
print_r($pdf_html_client);
ob_end_clean();
// Load the dompdf files
//require_once("sendmail/dompdf/dompdf_config.inc.php");
require_once("../sendmail/dompdf/dompdf_config.inc.php");
$dompdf = new DOMPDF(); // Create new instance of dompdf
$dompdf->load_html($pdf_html); // Load the html
$dompdf->render(); // Parse the html, convert to PDF
$pdf_content = $dompdf->output(); // Put contents of pdf into variable for later
$dompdf_client = new DOMPDF(); // Create new instance of dompdf
$dompdf_client->load_html($pdf_html_client); // Load the html
$dompdf_client->render(); // Parse the html, convert to PDF
$pdf_content_client = $dompdf_client->output(); // Put contents of pdf into variable for later
// Get the contents of the HTML email into a variable for later
ob_start();
//require_once("sendmail/html.php");
require_once("../sendmail/html_tour.php");
$html_message = ob_get_contents();
ob_end_clean();
// Get the contents of the HTML email into a variable for later
ob_start();
//require_once("sendmail/html.php");
require_once("../sendmail/html_tour_client.php");
$html_message_client = ob_get_contents();
ob_end_clean();
// Load the SwiftMailer files
//require_once("sendmail/swift/swift_required.php");
require_once("../sendmail/swift/swift_required.php");
$mailer = new Swift_Mailer(new Swift_MailTransport()); // Create new instance of SwiftMailer
$mailer_client = new Swift_Mailer(new Swift_MailTransport()); // Create new instance of SwiftMailer