Skip to content

Commit

Permalink
Update Inspection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Jun 28, 2024
1 parent 5149e23 commit 6f9ef50
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1092,8 +1092,8 @@ public function emailsend() {
$config['smtp_host'] = 'smtp.customers.inline.gr';
$config['smtp_user'] = '[email protected]';
$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);
Expand All @@ -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."<br>";
$fp = fsockopen($config['smtp_host'], 587, $errno2, $errstr2, 50);
echo "587 ".$errno2." ".$errstr2."<br>";
} else {
echo "nok";
}
//$fp = fsockopen('www.inline.gr', 443, $errno1, $errstr1, 50);
//echo "443 ".$errno1." ".$errstr1."<br>";
//$fp = fsockopen($config['smtp_host'], 587, $errno2, $errstr2, 50);
//echo "587 ".$errno2." ".$errstr2."<br>";


}
Expand Down

0 comments on commit 6f9ef50

Please sign in to comment.