From 30b6a9d58fac39dc3bdb50f82dcfce0a8690e0d5 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Tue, 21 Mar 2023 12:40:05 +0530 Subject: [PATCH] Mail Testing : ps --- .../controllers/Sales_PD_Controller.php | 9 +++++---- api/application/helpers/pdalerts_helper.php | 15 ++++++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 8b46c070..dc8fef77 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -1308,10 +1308,11 @@ class Sales_PD_Controller extends REST_Controller { public function testAPISalesPD_post() { - log_message('ERROR','####testAPISalesPD CALLED 2897'); - // PDALERTS::sendSalesPDMail($this,3019,869);die(); - //PDALERTS::sendSalesPDMail($this,32);die(); - satellite_image::getSatelliteImage(2897,2);//die(); + $id = $this->post('id'); + log_message('ERROR','####testAPISalesPD CALLED'.$id); + PDALERTS::sendSalesPDMail($this,$id,869);die();s + // 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"; // file_put_contents('test.jpg', file_get_contents($url)); } diff --git a/api/application/helpers/pdalerts_helper.php b/api/application/helpers/pdalerts_helper.php index 094bef5f..ad91cb30 100644 --- a/api/application/helpers/pdalerts_helper.php +++ b/api/application/helpers/pdalerts_helper.php @@ -539,11 +539,16 @@ class PDALERTS $mail->SMTPAuth = true; $mail->SMTPDebug = 0; $mail->SMTPSecure = "ssl"; - $mail->Host = 'bh-in-16.webhostbox.net'; // SMTP server - $mail->Username = "noreply@ssa.sineedge.com"; // "The account" - $mail->Password = "noreply@ssa"; // "The password" - $mail->Port = 465; // "The port" - $mail_id = 'ssa@venbainfotech.com'; + // $mail->Host = 'bh-in-16.webhostbox.net'; // SMTP server + // $mail->Username = "noreply@ssa.sineedge.com"; // "The account" + // $mail->Password = "noreply@ssa"; // "The password" + // $mail->Port = 465; // "The port" + $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 == 'production') {