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 8e18200 commit b982023
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1082,22 +1082,23 @@ public function emailsend() {


$this->load->library('email');
$smtpass = getenv("SMTPPASS");
$smtpass2 = getenv("SMTPPASS");
$smtpass = '*1@0$aghLvGq%';
$config['protocol'] = 'smtp';
$config['wordwrap'] = TRUE;
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['crlf'] = '\r\n';
$config['newline'] = '\r\n';
$config['smtp_host'] = 'customers.inline.gr';
$config['smtp_user'] = 'imperial-dekra@customers.inline.gr';
$config['smtp_pass'] = '*1@0$aghLvGq%';
$config['smtp_crypto'] = 'TLS';
$config['smtp_port'] = '587';
$config['smtp_host'] = 'imperial-dekra.gr';
$config['smtp_user'] = 'itin-noreply@imperial-dekra.gr';
$config['smtp_pass'] = $smtpass;
/*$config['smtp_crypto'] = 'TLS';*/
$config['smtp_port'] = '25';
$config['smtp_timeout'] = '15';
$this->email->initialize($config);
$this->email->to('[email protected]');
$this->email->from('imperial-dekra@customers.inline.gr', 'IMPERIAL-DEKRA');
$this->email->from('itin-noreply@imperial-dekra.gr', 'IMPERIAL-DEKRA');
$this->email->cc('[email protected]');
//$this->email->bcc('[email protected]');
$this->email->subject('Email Test');
Expand All @@ -1109,10 +1110,10 @@ public function emailsend() {


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

} else {
echo "nok";
echo "nnok";
}
//$fp = fsockopen('www.inline.gr', 443, $errno1, $errstr1, 50);
//echo "443 ".$errno1." ".$errstr1."<br>";
Expand Down

0 comments on commit b982023

Please sign in to comment.