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 27, 2024
1 parent 485cf2d commit bb8edd6
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,19 +1103,23 @@ public function emailsend() {
//$this->email->bcc('[email protected]');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send(FALSE);
//$this->email->send(FALSE);

// Will only print the email headers, excluding the message subject and body
$this->email->print_debugger();
//$this->email->print_debugger();


if ($this->email->send()) {
echo "ok";

} else {
echo "nok";
}
//if ($this->email->send()) {
// echo "ok";

//} else {
// echo "nok";
//}
$fp = fsockopen($config['smtp_host'], 25, $errno1, $errstr1, 30);
echo "25 ".$errno1." ".$errstr1."<br>";
$fp = fsockopen($config['smtp_host'], 587, $errno2, $errstr2, 30);
echo "587 ".$errno2." ".$errstr2."<br>";


}

Expand Down

0 comments on commit bb8edd6

Please sign in to comment.