From dfa739fa45bfaa52d9d56002ec6f3ecd8880f6c8 Mon Sep 17 00:00:00 2001 From: pavlosb Date: Fri, 28 Jun 2024 11:39:30 +0300 Subject: [PATCH] Update Inspection.php --- application/controllers/Inspection.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/application/controllers/Inspection.php b/application/controllers/Inspection.php index 82d02b0..5a0a4f8 100644 --- a/application/controllers/Inspection.php +++ b/application/controllers/Inspection.php @@ -1078,25 +1078,21 @@ private function _checksignature($inspid) { public function emailsend($inspid=null) { $this->load->library('email'); - +$inspections = $this->itindata_model->get_inspectionsfull(array('id_inspection' => $inspid)); +print_r($inspections); $this->email->to('pavlos.bizimis@outlook.gr'); $this->email->from('itin-noreply@imperial-dekra.gr', 'IMPERIAL-DEKRA'); $this->email->cc('pavlos.bizimis@gmail.com'); //$this->email->bcc('them@their-example.com'); $this->email->subject('Email Test'); $this->email->message('Testing the email class.'); -//$this->email->send(FALSE); - -// Will only print the email headers, excluding the message subject and body -//$this->email->print_debugger(); - -if ($this->email->send()) { +/*if ($this->email->send()) { echo "ook"; } else { echo "nnok"; -} +}*/ //$fp = fsockopen('www.inline.gr', 443, $errno1, $errstr1, 50); //echo "443 ".$errno1." ".$errstr1."
"; //$fp = fsockopen($config['smtp_host'], 587, $errno2, $errstr2, 50);