<style type="text/css">
            body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */
            /* Reset Styles */
            body{margin:0; padding:0;}
            html,body,blockquote,code,h1,h2,h3,h4,h5,h6,p,pre{margin:0;padding:0}
            button,fieldset,form,input,legend,textarea,select{margin:0;padding:0}
            fieldset{border:0}
            p {margin-bottom:0; margin:0}
            a,a *{cursor:pointer}
            hr,img{border:0}
            applet,iframe,object{border:0;margin:0;padding:0}
            button,input[type=button],input[type=image],input[type=reset],input[type=submit],label{cursor:pointer;}
            strong{font-weight:bold;}
            em{font-style:italic;}
            table{font-size:12px;}
			@media only screen and (max-width: 480px) {
				body{
					/* Avoid unnessary x scrollbar */
					width: 99.2% !important;
				}
				#templateContainer{
					width: 100% !important;
				}
				#templateContainer .block-cell{
					display: block;
					width: 100% !important;
				}
				#templateContainer, #templateContainer .block-table{
					width: 100% !important;
				}
				#templateContainer .block-cell .block-content img{
					display: block;
					margin: 0 auto;
					width: 90% !important;
					height: auto !important;
					max-width: 90% !important;
				}
				#templateContainer .block-cell .block-content a img{
				  height:auto !important;
				  width:auto !important;
			  }
			}
  </style>


<?php


use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

require 'src/PHPMailer.php'; // Only file you REALLY need
require 'src/Exception.php'; // If you want to debug


$mail = new PHPMailer(true);                              // Passing `true` enables exceptions

try {

    //Recipients
    $mail->setFrom('info@itpathfinders.com', 'Itpathfinders');
    $mail->addAddress('jayathilaka@gmail.com', 'Joe User');     // Add a recipient
            // Name is optional
    $mail->addReplyTo('info@itpathfinders.com', 'Information');
   // $mail->addCC('cc@example.com');
   // $mail->addBCC('bcc@example.com');
    
    //Attachments
    //$mail->addAttachment('/var/tmp/file.tar.gz');         // Add attachments
    //$mail->addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name

    //Content
    $mail->isHTML(true);                                  // Set email format to HTML
    $mail->Subject = 'Here is the subject';
    $mail->Body    = '<table id="templateContainer" style="border-collapse: collapse; font-family: sans-serif; font-size: 14px; background-color: rgb(254, 254, 254); width: 600px; padding: 0px; border: 0px none rgb(128, 128, 128);" width="600" height="" cellspacing="0" cellpadding="0" border="0">
	<tbody class="ui-sortable">
	 <tr class="srt-block active">
	  <td valign="top">
	   <div class="ckedit cke_editable cke_editable_inline cke_contents_ltr cke_show_borders" tabindex="0" spellcheck="true" role="textbox" aria-label="Rich Text Editor, editor1" aria-describedby="cke_73" contenteditable="true">
		<table class="block-table cke_show_border" style="border-spacing: 0;border-collapse: collapse;" width="100%" border="0">
		 <tbody>
		  <tr>
		   <td class="block-cell active" width="100%" valign="middle">
			<table style="font-size: 12px;" class=" cke_show_border" width="100%" cellspacing="0" cellpadding="0" border="0">
			 <tbody>
			  <tr>
			   <td class="block-content" style="padding:20px;" valign="top">
				<h4 class="h4" style="font-size: 24px; padding-bottom: 4px; text-align: right; margin-left: 560px;">
				 <span style="font-family:tahoma,geneva,sans-serif;">
				  <span style="font-size:12px;">
				   <span style="font-size:14px;">​
					<span tabindex="-1" data-cke-widget-wrapper="1" data-cke-filter="off" class="cke_widget_wrapper cke_widget_inline cke_widget_image cke_image_nocaption" data-cke-display-name="image" data-cke-widget-id="1" role="region" aria-label=" image widget" contenteditable="false">
					 <img alt="" style="width: 65px; height: 48px;" data-cke-saved-src="https://aurikinvestmentholdings.od1.vtiger.com/test/upload/images/image002.jpg" src="https://aurikinvestmentholdings.od1.vtiger.com/test/upload/images/image002.jpg" class="cke_widget_element" data-cke-widget-data="%7B%22hasCaption%22%3Afalse%2C%22src%22%3A%22https%3A%2F%2Faurikinvestmentholdings.od1.vtiger.com%2Ftest%2Fupload%2Fimages%2Fimage002.jpg%22%2C%22alt%22%3A%22%22%2C%22width%22%3A%2265%22%2C%22height%22%3A%2248%22%2C%22lock%22%3Atrue%2C%22align%22%3A%22none%22%2C%22classes%22%3Anull%7D" data-cke-widget-upcasted="1" data-cke-widget-keep-attr="0" data-widget="image" width="65" height="48">
					 <span class="cke_reset cke_widget_drag_handler_container" style="background:rgba(220,220,220,0.5);background-image:url(https://aurikinvestmentholdings.od1.vtiger.com/_resources7.21.2.1.3_/libraries/jquery/ckeditor_4.8.0/plugins/widget/images/handle.png)">
					  <img class="cke_reset cke_widget_drag_handler" data-cke-widget-drag-handler="1" src="data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==" title="Click and drag to move" role="presentation" draggable="true" width="15" height="15">
					 </span>
					 <span class="cke_image_resizer" title="Click and drag to resize">​
					 </span>
					</span>
				   </span>
				  </span>
				 </span>
				</h4>
				<h4 class="h4 active" style="font-size: 24px; padding-bottom: 4px;">
				 <br>
				 <span style="font-family:Tahoma,geneva,sans-serif;">
				  <span style="font-size:12px;">
				   <span style="line-height:125%">
					<span style="background:white">
					 <span style="line-height:125%">
					  <span style="color:black">Hi&nbsp;
					  </span>
					 </span>
					</span>
				   </span>$leads-firstname$, <br/><br/>
				   <span style="line-height:100%">
					<span style="background:white">
					 <span style="line-height:100%">
					  <span style="color:black">Congratulations. You have one matching according to your record. <br/><br/> click on the link to see the details..,  <br/>
					  <a target="_blank" href="itpathfinders.com/mutual/registration/matching.php">Click Here</a>
					  </span>
					 </span>
					</span>
				   </span>
				  </span>
				 </span>
			
			
	</tbody>
   </table>';
    $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

    $mail->send();
    echo 'Message has been sent';
} catch (Exception $e) {
    echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
}
?>