| 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
$url = 'https://api.elasticemail.com/v2/email/send';
$apiKey = "6D935DF92A3E5A22AF873F414319263E3A30EEEDE60865957B26B5F010885A9BE2A46DFAA61A4CCBE260809C676E643E";
//$apiKey = "387838E15C342479A9A7EA726A05827F9A88B457902B3EC36DEAD2D6DA55B54400CB70D4DFC42CE915B07D4DA356621C";
try {
$post = array(
'from' => "ADMIN@HAPPITRIPS.IN",
'fromName' => "Hello GTX",
'apikey' => $apiKey,
'subject' => "helloGTX mail CHECK",
'to' => "prashant@catpl.co.in",
'bodyHtml' => '<!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>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body>
<table width="700" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td height="100" valign="top" style="color:#333333; font:normal 12px Arial, Helvetica, sans-serif;"><br />
<br />
Hello from HelloGTX !
<br />
<br />
We are delighted to hear from you. Please give us sometime to reach out to you within the next couple of
working days. <br /><br />
</td>
</tr>
<tr>
<td height="25" valign="top" style="color:#333333; font:normal 12px Arial, Helvetica, sans-serif;">Thank you
for your enquiry.</td>
</tr>
<tr>
<td valign="top" style="color:#333333; font:normal 12px Arial, Helvetica, sans-serif;">
Regards,<br /><br />HelloGTX 24
- Hour Customer Care<br /><br />
Please note: The sender email ID is not monitored, kindly do not use the reply button. This is a system
generated response.
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="right"> </td>
</tr>
</table>
</body>
</html>',
'bodyText' => "",
'isTransactional' => false
);
//echo "<pre>"; print_r($post); exit;
$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);
echo "<pre>";
print_r($result);
exit;
} catch (Zend_Exception $e) {
echo $e->getMessage();
exit;
}