403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/cronjob/DailyUserNotLogin.php
<?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' => 'CA4ED92049CFD42ADD6ABE771C0F30ECED774CA4A50D20CD1FFBD22EE33417B0ACB8BD2AA5A967BA5C87477C6529729C',
            '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) {
    $mailBody = '';
    $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>helloGTX</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; color:#FFF;">  
            <tr>
                <td align="center" style="background:#fafbfd; text-align:left; padding:20px 20px 20px 20px;font-size:14px;  color:#fff; font-family:Arial, Helvetica, sans-serif; text-align:center; line-height:24px;" valign="top">&nbsp;</td>
            </tr>
            <tr>
                <td align="left" style="background:#ee4343; text-align:center; border:1px solid #e6e9ed;border-bottom:none; border-top:none;  padding:20px;font-size:18px;  color:#fff; font-family:Arial, Helvetica, sans-serif; text-align:center; line-height:24px;" valign="top"> <strong>Dear ' . $customerName .',</strong> </td>
            </tr>
            <tr>
                <td align="center" style="background:#ee4343; text-align:center; border:1px solid #e6e9ed; border-bottom:none; border-top:none; padding:20px 20px 10px 20px;font-size:30px;  color:#fff; font-family:Arial, Helvetica, sans-serif; text-align:center; line-height:24px;" valign="top">We Have Missed You At <span style="color:#fff; font-weight:500; font-size:36px;">hello</span><span style="color:#fff; font-weight:500; font-size:36px;">GTX</span></td>
            </tr>
            <tr>
                <td align="left" style="background:#ee4343; text-align:left; border:1px solid #e6e9ed; border-bottom:none; border-top:none; padding:0 20px 10px 20px;font-size:15px;  color:#fff; font-family:Arial, Helvetica, sans-serif; text-align:center; line-height:24px; font-weight:600;" valign="top">It has been a long time since you last logged in. What`s bothering you?</td>
            </tr>
            <tr>
                <td align="left" style="background:#ee4343; text-align:left; border:1px solid #e6e9ed; border-bottom:none; border-top:none; padding:20px;font-size:15px;  color:#fff; font-family:Arial, Helvetica, sans-serif; text-align:center; line-height:24px; font-weight:600;" valign="top"> 
                    Recently we have given so many amazing features that can help you make <br />
                    <span  style="color:#fff; font-weight:600; font-size:18px;"> great tour plans</span> and <span  style="color:#fff; font-weight:600; font-size:18px;">increase your sales.</span>
                    <br />
                    <br />              

                    We have recently added  <span  style="color:#fff; font-weight:600; font-size:16px;">Auto Follow ups, Marketing emailers and refer and earn scheme   </span>   as well where you can <span  style="color:#FC0; font-weight:600; font-size:16px;">earn up to INR 2500</span> for helping your friends.
                    <br />
                    <br />
                    Login to your account at <a href="https://globaltravelexchange.com/login/login" style="font-family:Arial, Helvetica, sans-serif; text-align:center; color:#fff; font-size:15px; text-decoration:none; ">www.globaltravelexchange.com</a> with your login ID<br />

                    <a href="https://globaltravelexchange.com/login/login" style="font-family:Arial, Helvetica, sans-serif;  text-align:center; color:#fff; font-size:15px; text-decoration:none;"> <strong>'.$Email.'</a>&nbsp; and check out the new features in the system.
                    <br />
                    <br />

                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="height:40px; line-height:40px;" align="center"> <table width="200" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="font-family:Arial, Helvetica, sans-serif; width:200px; height:40px;  background:#F90; text-align:center; color:#FFF; font-size:16px; font-weight:bold; text-decoration:none; text-transform:uppercase;"><a href="https://globaltravelexchange.com/login/login" style="font-family:Arial, Helvetica, sans-serif; width:200px; height:40px;  background:#F90; text-align:center; color:#fff; font-size:16px; font-weight:bold; text-decoration:none; text-transform:uppercase;">Login Here </a></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table> 
                </td>
            </tr>
            <tr>
                <td align="left" style="background:#fafbfd; text-align:left;   border-top:none; padding:20px;font-size:14px;  color:#fff; font-family:Arial, Helvetica, sans-serif; text-align:center; line-height:24px;" valign="top"> <p style="mso-table-lspace:0;mso-table-rspace:0; margin:0; font-family:Arial, Helvetica, sans-serif; text-align:left; font-weight:400; font-size:14px; color:#000000; text-align:justify;"><b>
                            Thank You,
                        </b></p>
                    <p style="mso-table-lspace:0;mso-table-rspace:0; margin:0; font-weight:400; font-family:Arial, Helvetica, sans-serif; text-align:left; font-size:14px; color:#000033; text-align:justify; margin-top:0px"> 
                        <span style="color:#0b74c4; font-weight:700; font-size:16px;">hello</span><span style="color:#fb5a2d; font-weight:700; font-size:16px;">GTX</span> Team
                    </p></td>
            </tr>
        </table>
    </body>
</html>';
  //  $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;
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit