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 7c40bc0 commit dfa739f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('[email protected]');
$this->email->from('[email protected]', 'IMPERIAL-DEKRA');
$this->email->cc('[email protected]');
//$this->email->bcc('[email protected]');
$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."<br>";
//$fp = fsockopen($config['smtp_host'], 587, $errno2, $errstr2, 50);
Expand Down

0 comments on commit dfa739f

Please sign in to comment.