Skip to content

Commit

Permalink
email
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Jun 27, 2024
1 parent 4ce19bc commit 4234c58
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,26 @@ private function _checksignature($inspid) {
}

public function emailsend() {




$this->load->library('email');
$smtpass = getenv("SMTPPASS");

$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'] = '[email protected]';
$config['smtp_pass'] = $smtpass;
/**$config['smtp_crypto'] = 'SSL';*/
$config['smtp_port'] = '587';
$config['smtp_timeout'] = '15';
$this->email->initialize($config);
$this->email->to('[email protected]');
$this->email->from('[email protected]', 'IMPERIAL-DEKRA');
$this->email->cc('[email protected]');
Expand Down

0 comments on commit 4234c58

Please sign in to comment.