| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/cronjob/ |
Upload File : |
<?php
require_once 'init.php';
error_reporting(E_ALL);
function writeLog($data) {
$fileName = date("Y-m-d") . ".txt";
$fp = fopen($fileName, 'a+');
$data = date("Y-m-d H:i:s") . " - " . $data;
fwrite($fp, $data);
fclose($fp);
}
function mailSentByElastice($emailData, $arrEmailStatistics = array()) {
$url = 'https://api.elasticemail.com/v2/email/send';
$to = implode(";", $emailData['to']);
try {
$post = array('from' => $emailData['fromEmail'],
'fromName' => $emailData['fromName'],
'apikey' => 'dde45a5a-957d-4b94-9bd5-d41431d1a550',
'subject' => $emailData['subject'],
'to' => $to,
'bodyHtml' => $emailData['bodyHtml'],
'bodyText' => $emailData['bodyText'],
'isTransactional' => false);
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $url,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $post,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_SSL_VERIFYPEER => false
));
$result = curl_exec($ch);
writeLog($result . '/n');
curl_close($ch);
} catch (Exception $ex) {
$result = $ex->getMessage();
}
return $result;
}
$tblAgencyStaffObj = new Travel_Model_TblAgencyStaff();
$AgencyList = $tblAgencyStaffObj->checkLast3DaysLoginAgencyData();
//echo "<pre>";print_r($AgencyList);exit;
$fromEmail = "noreply@hellogtx.com";
$fromName = "Hello GTX";
foreach ($AgencyList['Result1'] as $agentkey => $agentvalue) {
$FirstName = isset($agentvalue['FirstName']) ? ucfirst(strtolower(trim($agentvalue['FirstName']))) : '';
$LastName = isset($agentvalue['LastName']) ? ucfirst(strtolower(trim($agentvalue['LastName']))) : '';
$customerName = $FirstName . ' ' . $LastName;
$Email = trim($agentvalue['EmailId']);
$mailBody = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table width="650" border="0" cellspacing="0" cellpadding="0" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; line-height:18px;">
<tr>
<td colspan="2" style="background:#FFF; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 5px 10px; border-bottom:0px solid #e6e9ed; "> <span style="color:#333; font-size:15px; font-weight:600; border-bottom:none;"> Dear Travel Agent Owner Name, </span></td>
</tr>
<tr>
<td colspan="2" bgcolor="#e6e9ed" style="background:#e6e9ed; padding:0px; background:#e6e9ed !important;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" style="background:#FFF !important">
<tr>
<td colspan="3" align="center" style="padding:0;" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 10px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">helloGTX is committed towards your organization growth. We have summarised key parameters of your organization sales for your ready reference. </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 10px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">Do you know average cost of a B2C query for domestic market is INR 100, Outbound market is INR 300 and for Inbound travel query cost is approx. INR 1000? If you manage and record all your queries <strong>you may save this money</strong> by targeting repeat business on lead generation with helloGTX marketing tools. </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 10px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">helloGTX help you to increase <span style="color:#0070cd; font-weight:600;">Life-Time Value of your leads</span> and in <span style="color:#0070cd; font-weight:600;">retaining a customer for longer.</span> </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 5px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:700; color:#ff0000; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">Today you and your team contributed as below: </td>
</tr>
<tr>
<td align="left" style="padding:0; border-left: 1px solid #e6e9ed; border-right: 1px solid #e6e9ed;" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">New Domestic Leads: </td>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;width:50%;" valign="top">3 Leads (INR 300) </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">New Outbound Leads: </td>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">2 Leads (INR 600) </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 5px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:700; color:#ff0000; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">Consolidated Contribution: </td>
</tr>
<tr>
<td align="left" style="padding:0; border-left: 1px solid #e6e9ed; border-right: 1px solid #e6e9ed;" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">As on Today: </td>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">INR 900/- </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">Current week: </td>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">INR 3,000/- </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">Month till date: </td>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top"> INR 15,000/- (Saving for next year) </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 5px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:700; color:#ff0000; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">Business Done by the Team Members: </td>
</tr>
<tr>
<td align="left" style="padding:0; border-left: 1px solid #e6e9ed; border-right: 1px solid #e6e9ed;" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">New Sales Count: </td>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">5 </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">New Sales Volume: </td>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">INR 2,35,000/- </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top">Gross Profit: </td>
<td align="left" style="background:#fff; text-align:left; border:0px solid #e6e9ed; padding:3px 10px 0px 10px; border-bottom:0; line-height: 22px; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important; width:50%;" valign="top"> INR 35,000/- </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 10px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">You are doing <a href="#" style="color:#00b050; font-weight:bold; text-decoration:none;">GOOD</a>. Keep doing the good work to improve your organization health. If you want to add <a href="#" style="color:#00b050; font-weight:bold;text-decoration:none;">MORE VALUE</a>, contact a <a href="#" style=" color:#4472c4;text-decoration:none; font-weight:bold;">GROWTH CONSULTANT</a> by clicking here. </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 10px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">You are doing <a href="#" style="color:#00b050;font-weight:bold;text-decoration:none;">GREAT</a>. Keep doing the great work to improve your organization health. If you want to add <a href="#" style="color:#00b050;font-weight:bold;text-decoration:none;">MORE VALUE</a>, contact a <a href="#" style=" color:#4472c4;font-weight:bold; text-decoration:none;">GROWTH CONSULTANT</a> by clicking here. </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 10px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">You need to <a href="#" style=" color:#ff0000;font-weight:bold;text-decoration:none;">IMPROVE</a>. If you are facing any <a href="#" style=" color:#ff0000;font-weight:bold;text-decoration:none;">CHALLENGES</a>, contact a <a href="#" style=" color:#4472c4;font-weight:bold;text-decoration:none;">GROWTH CONSULTANT</a> now by clicking here to help you add more value to your organisation health. </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:20px 10px 10px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:300; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">Lets help your friends by contributing in their growth and earn. Refer your friends to helloGTX <a href="#" style=" color:#4472c4;font-weight:bold;text-decoration:none;">GROWTH CONSULTANT</a> now by <a href="#" style="background:#ffff00;color:#ff0000;text-decoration:none; font-weight:600;">CLICKING HERE</a>. </td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:10px 10px 5px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:600; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">Thanks,</td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border:1px solid #e6e9ed; padding:5px 10px 5px 10px; line-height: 22px; border-bottom:0; font-size:15px; font-weight:600; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top">Team helloGTX</td>
</tr>
<tr>
<td align="left" style="background:#fff; text-align:left; border-left:1px solid #e6e9ed; border-right:1px solid #e6e9ed; padding:0px; font-size:15px; font-weight:500; color:#555; font-family:Arial, Helvetica, sans-serif; border-top:none !important;" valign="top"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<!-- <tr>
<td colspan="2" align="right" bgcolor="#e6e9ed" style="background:#e6e9ed !important; padding:20px 25px; font-size:14px;">Powered by: <a href="http://hellogtx.com/" target="_blank" style="text-decoration:none;" ><span style="color:#0b74c4">hello</span><span style="color:#fb5a2d">GTX</span></a></td>
</tr>-->
</table>
</body>
</html>
';
echo $mailBody; exit;
// $Email = "prashant@catpl.co.in";
$toArr = array($Email);
$configs = [
'to' => $toArr,
'fromName' => $fromName,
'fromEmail' => $fromEmail,
'subject' => "We are missing you $customerName",
'bodyHtml' => $mailBody,
'bodyText' => '',
];
$custmail[] = mailSentByElastice($configs, '');
// exit;
}
?>