Mail Testing : ps
This commit is contained in:
parent
ea55e0de37
commit
30b6a9d58f
@ -1308,10 +1308,11 @@ class Sales_PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
public function testAPISalesPD_post()
|
public function testAPISalesPD_post()
|
||||||
{
|
{
|
||||||
log_message('ERROR','####testAPISalesPD CALLED 2897');
|
$id = $this->post('id');
|
||||||
// PDALERTS::sendSalesPDMail($this,3019,869);die();
|
log_message('ERROR','####testAPISalesPD CALLED'.$id);
|
||||||
//PDALERTS::sendSalesPDMail($this,32);die();
|
PDALERTS::sendSalesPDMail($this,$id,869);die();s
|
||||||
satellite_image::getSatelliteImage(2897,2);//die();
|
// PDALERTS::sendSalesPDMail($this,32);die();
|
||||||
|
// satellite_image::getSatelliteImage(2897,2);//die();
|
||||||
// $url = "https://maps.googleapis.com/maps/api/staticmap?center=12.9788141,80.1871334&zoom=14&markers=color:red|12.9788141,80.1871334&size=800x300&maptype=roadmap&key=AIzaSyA3lYDYxwtn5vLSl45SOKbtK7G6cEyXGr0";
|
// $url = "https://maps.googleapis.com/maps/api/staticmap?center=12.9788141,80.1871334&zoom=14&markers=color:red|12.9788141,80.1871334&size=800x300&maptype=roadmap&key=AIzaSyA3lYDYxwtn5vLSl45SOKbtK7G6cEyXGr0";
|
||||||
// file_put_contents('test.jpg', file_get_contents($url));
|
// file_put_contents('test.jpg', file_get_contents($url));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -539,11 +539,16 @@ class PDALERTS
|
|||||||
$mail->SMTPAuth = true;
|
$mail->SMTPAuth = true;
|
||||||
$mail->SMTPDebug = 0;
|
$mail->SMTPDebug = 0;
|
||||||
$mail->SMTPSecure = "ssl";
|
$mail->SMTPSecure = "ssl";
|
||||||
$mail->Host = 'bh-in-16.webhostbox.net'; // SMTP server
|
// $mail->Host = 'bh-in-16.webhostbox.net'; // SMTP server
|
||||||
$mail->Username = "noreply@ssa.sineedge.com"; // "The account"
|
// $mail->Username = "noreply@ssa.sineedge.com"; // "The account"
|
||||||
$mail->Password = "noreply@ssa"; // "The password"
|
// $mail->Password = "noreply@ssa"; // "The password"
|
||||||
$mail->Port = 465; // "The port"
|
// $mail->Port = 465; // "The port"
|
||||||
$mail_id = 'ssa@venbainfotech.com';
|
$mail->Host = 'us2.smtp.mailhostbox.com'; // SMTP server
|
||||||
|
$mail->Username = "noreply@pdgenie.com"; // "The account"
|
||||||
|
$mail->Password = 'Rb$v$WF1'; // "The password"
|
||||||
|
$mail->Port = 587;
|
||||||
|
$mail_id = 'noreply@pdgenie.com';
|
||||||
|
// $mail_id = 'ssa@venbainfotech.com'; // commentted for testing purpose
|
||||||
if(ENVIRONMENT == 'testing' && in_array((string)$city,$city_arg)){ $mail->addBCC("venkiraj0@gmail.com");}
|
if(ENVIRONMENT == 'testing' && in_array((string)$city,$city_arg)){ $mail->addBCC("venkiraj0@gmail.com");}
|
||||||
if(ENVIRONMENT == 'production')
|
if(ENVIRONMENT == 'production')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user