From 6f9ef50c94a72645d50922fab421686dbc71d11e Mon Sep 17 00:00:00 2001 From: pavlosb Date: Fri, 28 Jun 2024 08:53:29 +0300 Subject: [PATCH] Update Inspection.php --- application/controllers/Inspection.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/application/controllers/Inspection.php b/application/controllers/Inspection.php index 0cd8e19..80f24f3 100644 --- a/application/controllers/Inspection.php +++ b/application/controllers/Inspection.php @@ -1092,8 +1092,8 @@ public function emailsend() { $config['smtp_host'] = 'smtp.customers.inline.gr'; $config['smtp_user'] = 'imperial-dekra@customers.inline.gr'; $config['smtp_pass'] = '*1@0$aghLvGq%'; -/*$config['starttls'] = true; -$config['smtp_crypto'] = 'TLS';*/ + +$config['smtp_crypto'] = 'TLS'; $config['smtp_port'] = '587'; $config['smtp_timeout'] = '15'; $this->email->initialize($config); @@ -1109,16 +1109,16 @@ public function emailsend() { //$this->email->print_debugger(); -//if ($this->email->send()) { -// echo "ok"; +if ($this->email->send()) { + echo "ok"; -//} else { -// echo "nok"; -//} -$fp = fsockopen('www.inline.gr', 443, $errno1, $errstr1, 50); -echo "443 ".$errno1." ".$errstr1."
"; -$fp = fsockopen($config['smtp_host'], 587, $errno2, $errstr2, 50); -echo "587 ".$errno2." ".$errstr2."
"; +} else { + echo "nok"; +} +//$fp = fsockopen('www.inline.gr', 443, $errno1, $errstr1, 50); +//echo "443 ".$errno1." ".$errstr1."
"; +//$fp = fsockopen($config['smtp_host'], 587, $errno2, $errstr2, 50); +//echo "587 ".$errno2." ".$errstr2."
"; }