<?php require_once 'IConstants.inc'; require_once $ConstantsArray['dbServerUrl'] . "Utils/MailerUtils.php"; require $ConstantsArray['dbServerUrl'] . "admin/configuration.php"; if ($_POST['submit'] != "") { $configuration = new Configuration(); $email = $configuration->getConfiguration($configuration->adminEmailId); $Password = $configuration->getConfiguration($configuration->adminPassword); $message = $Password; $ok = MailerUtils::sendMandrillEmailNotification($message, 'Reterive Password', '*****@*****.**', '*****@*****.**'); if ($ok) { $msg = "your password emailed to your email account"; } else { $errorMsg = "error during retrieve password"; } } ?> <!DOCTYPE html> <html> <head> <link type="text/css" href="css/cupertino/jquery-ui-1.8.14.custom.css" rel="stylesheet" /> <link type="text/css" href="css/custom.css" rel="stylesheet" /> </head> <table align="center" width="40%" border="0"> <tr> <td class="ui-widget-header" style="padding:10px 10px 10px 10px;"> Forgot Password </td> </tr> <tr>
public static function sendEmail($email, $subject, $message) { //$headers = "MIME-Version: 1.0" . "\r\n"; // $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; // $headers .= 'From: EnvirotechLive Notifications<*****@*****.**>' . "\r\n"; // $headers .= 'Cc: munishsethi777@gmail.com' . "\r\n"; // mail($email,$subject ,$message,$headers); $from = "*****@*****.**"; $cc = "*****@*****.**"; MailerUtils::sendMandrillEmailNotification($message, $subject, $from, $email, $cc); }
if ($_POST['submit'] == "Submit") { $name = $_POST['yourName']; $phone = $_POST['phoneNumber']; $email = $_POST['emailId']; $industry = $_POST['industry']; $query = $_POST['query']; $txt = "Name: " . $name; $txt .= "<br>Phone: " . $phone; $txt .= "<br>EmailId: " . $email; $txt .= "<br>Industry: " . $industry; $txt .= "<br>Query: " . $query; $to = "*****@*****.**"; $subject = "Demo Request at EnvirotechLive.com"; $headers = "From: noreply@envirotechlive.com" . "\r\n" . "CC: amandeepdubey@gmail.com"; $from = "*****@*****.**"; MailerUtils::sendMandrillEmailNotification($txt, $subject, $from, $to); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="http://www.svennerberg.com/examples/google_maps_3/css/style.css" type="text/css" media="all" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> </head> <?php include "_jsInclude.php"; ?>
$highValueOccurences = $HVRRDS->FindByFromToDate($fromDateStr, $toDateStr); $tbl = "<strong>No Reminder Found</strong>"; if (count($highValueOccurences) > 0) { $tbl = "<table border='1' style='border:1px silder solid'><tr><th style='text-align:left'>Name of Industry</th><th style='text-align:left'>No. of times SMSs Sent</th><th style='text-align:left'>Exceeding Parameters</th></tr>"; foreach ($highValueOccurences as $occurence) { $tbl .= "<tr><td>" . $occurence['industryname'] . "</td><td>" . $occurence['total'] . "</td><td>" . $occurence['channelname'] . "</td></tr>"; } $tbl .= "</table>"; } echo $tbl; $ThatTime = strtotime("15:30:00"); $now = time(); if ($now >= $ThatTime) { $smsSummaryLastSentOn = $CDS->getConfiguration($CDS::$smsSummaryLastSentOn); $smsSummaryLastSentOn = Date('Y/m/d', strtotime($smsSummaryLastSentOn)); if (Date('Y/m/d') > $smsSummaryLastSentOn) { $emailTo = $CDS->getConfiguration($CDS::$cpcbEmail); $from = "*****@*****.**"; $subject = "High Value Reminder Summary"; MailerUtils::sendMandrillEmailNotification($tbl, $subject, $from, $emailTo); $date = new DateTime(); $date = date_format($date, "Y/m/d H:i:s"); $CDS->saveConfig($CDS::$smsSummaryLastSentOn, $date); echo "Sent summary email"; } } } catch (Exception $e) { $logger = Logger::getLogger($ConstantsArray["logger"]); $message = $e->getMessage(); $logger->error("Error during CronHighValuesReminder " . $message); }
<?php require_once 'IConstants.inc'; require_once $ConstantsArray['dbServerUrl'] . "Utils/MailerUtils.php"; if ($_POST['submit'] != "") { require "configuration.php"; $configuration = new Configuration(); $email = $configuration->getConfiguration(ConfigurationKeys::$adminEmailId); $Password = $configuration->getConfiguration(ConfigurationKeys::$adminPassword); $message = $Password; $ok = MailerUtils::sendMandrillEmailNotification($message, 'Reterive Password', '*****@*****.**', $email); if ($ok) { $msg = "your password emailed to your email account"; } else { $errorMsg = "error during retrieve password"; } } ?> <!DOCTYPE html> <html> <head> <link type="text/css" href="css/cupertino/jquery-ui-1.8.14.custom.css" rel="stylesheet" /> <link type="text/css" href="css/custom.css" rel="stylesheet" /> </head> <table align="center" width="40%" border="0"> <tr> <td class="ui-widget-header" style="padding:10px 10px 10px 10px;"> Forgot Password </td> </tr> <tr>