<?php
 ob_start();
mysqli_close($con);
class SendMail 
{
function sendMailUser($receiver_mail,$user_name,$product_name,$payment_date,$dashboard_link,$amount,$mob,$user_id)
{
$headcontent='';
if($product_name=="BTCover")
{
$headcontent='We regret to inform you that your Renew transaction for BTCover has failed.';
$contact="btcover@appexperts.net";
}
$contact="http://www.belltechnology.in/";
$mail_body = "<tr>
<td style='padding:20px'>
<table style='max-width:500px' align='center' bgcolor='#ffffff' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tbody>
<tr>
<td style='font-size:1px;line-height:1px;height:1px' colspan='3' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td><table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tbody>
<tr>
<td colspan='4' height='20'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td width='293'>&nbsp;</td>
<td width='155'><a style='text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-size:20px;font-weight:bold;color:#6ac451'><img class='CToWUd' src='http://www.btcover.appexperts.net/images/ic_app_logo.png' alt='BTCover'></a></td>
<td width='26'>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='17'>&nbsp;</td>
</tr>
<tr>
<td style='min-height:1px;line-height:0px;font-size:0px' colspan='4' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td colspan='4' height='10'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666' colspan='2'>
<p>Dear $user_name</p>
</td>
<td width='26'>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='0'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666;line-height:20px' colspan='2'>
$headcontent
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='5'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666;line-height:20px' colspan='2'>Following are the transaction details:</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='15'>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan='2'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tbody>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff' width='40%'>Product Name</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$product_name</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>Payment DateTime</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$payment_date</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>User Email</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$receiver_mail</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff' width='40%'>User Id</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$user_id</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff' width='40%'>Phone No</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$mob</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>

<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff' width='40%'>Payment Amount</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$amount</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
</tbody>
</table>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='25'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666;line-height:20px' colspan='2'>You can retry the payment by clicking the below button – 
(Please keep Netbanking log-in /Credit or Debit Card details handy before making payment)</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='10'>&nbsp;</td>
</tr>
<tr>
<td colspan='4'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tbody>
<tr>
<td width='149'>&nbsp;</td>
<td align='center' bgcolor='#ea8a00' width='200'><a style='background:#ea8a00;color:#ffffff;font-size:17px;font-weight:normal;line-height:42px;font-family:Arial,Helvetica,sans-serif;min-height:42px;display:block;text-decoration:none' href='$dashboard_link' target='_blank'>Dashboard Login</a></td>
<td width='149'>&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan='4' height='17'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:bold;color:#000;line-height:24px' colspan='2'>Best Regards,</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#000;line-height:24px' colspan='2'>$product_name Support</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#000;line-height:24px' colspan='2'>+91-7340040171</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='10'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='4' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td colspan='4' bgcolor='#f3f3f3' height='10'>&nbsp;</td>
</tr>
<tr>
<td colspan='4' bgcolor='#f3f3f3'>
<table align=  ' border='0' cellpadding='0' cellspacing='0'>
<tbody>
<tr>
<td width='15'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666;line-height:20px' colspan='2'>If you have any issues, feel free to contact us at <a style='text-decoration:none;color:#ea8a00' href='mailto:$contact' target='_blank'>$contact</a></td>
<td width='12'>&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan='4' bgcolor='#f3f3f3' height='10'>&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='3' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
</tbody>
</table>
</td>
</tr>";
$mail = new PHPMailer;
			$mail->isSMTP();            
			//Set SMTP host name                          
			$mail->Host = "server1.appexperts.net";
			//Set this to true if SMTP host requires authentication to send email
			$mail->SMTPAuth = true;                         
			//Provide username and password     
			$mail->Username = "btcover@appexperts.net";                 
			$mail->Password = "vjEXl3qJ_0C8";                          
			//If SMTP requires TLS encryption then set it
			$mail->SMTPSecure = "tls";                           
			//Set TCP port to connect to 
			$mail->Port = 587;   
			//From email address and name
			$mail->From = "btcover@appexperts.net";
			$mail->FromName = "BTCover-PAYMENT";
			$mail->CharSet = 'UTF-8';
//To address and name
$mail->addAddress($receiver_mail);
	$mail->addBCC("dy@belltechnology.in");
	$mail->addBCC("sk@belltechnology.in");

//$mail->addAddress("recepient1@example.com"); //Recipient name is optional
//Send HTML or Plain Text email
$mail->isHTML(true);
		$mail->Subject = "$product_name Renew Transaction failure for BTCover";
		$mail->Body = "<i>$mail_body</i>";
		// $mail->AltBody = "This is the plain text version of the email content";
		if ($mail->send())
		{
				//echo "User Mailer Error: " . $mail->ErrorInfo;
				return '1';
		}
		else
		{		
			return $mail_body;
		}
}
// sending to admin
function sendmailAdmin($sender_mail,$umail,$user_name,$product_name,$Reg_dt_time,$dashboard_link,$user_mobile,$user_id)
{
$heading_one='';
$heading_one="We have a Payment Failure of '$user_name' TO $product_name";
//PHPMailer Object
$mail = new PHPMailer;
			$mail->isSMTP();            
			//Set SMTP host name                          
			$mail->Host = "server1.appexperts.net";
			//Set this to true if SMTP host requires authentication to send email
			$mail->SMTPAuth = true;                         
			//Provide username and password     
			$mail->Username = "btcover@appexperts.net";                 
			$mail->Password = "vjEXl3qJ_0C8";                                  
			//If SMTP requires TLS encryption then set it
			$mail->SMTPSecure = "tls";                           
			//Set TCP port to connect to 
			$mail->Port = 587;   
			//From email address and name
			$mail->From = "btcover@appexperts.net";
			$mail->FromName = "BTCover-PAYMENT";
			$mail->CharSet = 'UTF-8';

$mail->addAddress($sender_mail);
$mail->addBCC("dy@belltechnology.in");
$mail->addBCC("dy@belltechnology.in");
$mail->isHTML(true);
$mail->Subject = "$product_name Renew Transaction Failure";
$mail->Body = "<i><tr>
<td style='padding:20px'>
<table style='max-width:500px' align='center' bgcolor='#ffffff' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tbody>
<tr>
<td style='font-size:1px;line-height:1px;height:1px' colspan='3' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td><table align='center' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tbody>
<tr>
<td colspan='4' height='20'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td width='293'>&nbsp;</td>
<td width='155'><a style='text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-size:20px;font-weight:bold;color:#6ac451'><img class='CToWUd' src='http://www.btcover.appexperts.net/images/ic_app_logo.png' alt='BTCover'></a></td>
<td width='26'>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='17'>&nbsp;</td>
</tr>
<tr>
<td style='min-height:1px;line-height:0px;font-size:0px' colspan='4' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td colspan='4' height='10'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666' colspan='2'>
<p>Dear Team</p>
</td>
<td width='26'>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='0'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666;line-height:20px' colspan='2'>
$heading_one
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='5'>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666;line-height:20px' colspan='2'>Following are the Transaction details:</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='15'>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td colspan='2'>
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tbody>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff' width='40%'>Product Name</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$product_name</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>Payment DateTime</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$Reg_dt_time</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>User Email</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$umail</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>User Mobile</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$user_mobile</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' height='35' width='19'>&nbsp;</td>
<td style='color:#000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff' width='40%'>User Id</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
<td bgcolor='#ffffff' width='18'>&nbsp;</td>
<td style='color:#000000;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:16px' bgcolor='#ffffff'>&nbsp;$user_id</td>
<td bgcolor='#fff' width='5'>&nbsp;</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>

<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>


<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td style='line-height:1px' colspan='9' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
</tbody>
</table>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:bold;color:#000;line-height:24px' colspan='2'>Best Regards,</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#000;line-height:24px' colspan='2'>$product_name Team</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width='24'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#000;line-height:24px' colspan='2'>+91-7340040171</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan='4' height='10'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='4' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
<tr>
<td colspan='4' bgcolor='#f3f3f3' height='10'>&nbsp;</td>
</tr>
<tr>
<td colspan='4' bgcolor='#f3f3f3'>
<table align=  ' border='0' cellpadding='0' cellspacing='0'>
<tbody>
<tr>
<td width='15'>&nbsp;</td>
<td style='font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#666666;line-height:20px' colspan='2'>If you have any issues, feel free to contact us at <a style='text-decoration:none;color:#ea8a00' href='mailto:$umail' target='_blank'>$umail</a></td>
<td width='12'>&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan='4' bgcolor='#f3f3f3' height='10'>&nbsp;</td>
</tr>
</tbody>
</table>
</td>
<td bgcolor='#d6d6d6' width='1'>&nbsp;</td>
</tr>
<tr>
<td style='line-height:1px' colspan='3' bgcolor='#d6d6d6' height='1'>  </td>
</tr>
</tbody>
</table>
</td>
</tr>
</i>";
if(!$mail->send()) 
{
    return $mail_body;
} 
else 
{
     return '1';
}
}
}
?>