From 337c8ecc3a57ee7eca3e67db57d725d9ec0af117 Mon Sep 17 00:00:00 2001 From: pavlosb Date: Thu, 27 Jun 2024 12:39:06 +0300 Subject: [PATCH] Update Inspection.php --- application/controllers/Inspection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/Inspection.php b/application/controllers/Inspection.php index d0323d2..432a14c 100644 --- a/application/controllers/Inspection.php +++ b/application/controllers/Inspection.php @@ -1083,7 +1083,6 @@ public function emailsend() { $this->load->library('email'); $smtpass = getenv("SMTPPASS"); -echo $smtpass; $config['protocol'] = 'smtp'; $config['wordwrap'] = TRUE; $config['mailtype'] = 'html'; @@ -1106,6 +1105,8 @@ public function emailsend() { // Will only print the email headers, excluding the message subject and body $this->email->print_debugger(); + + if ($this->email->send()) { echo "ok";