Skip to content

Commit

Permalink
email
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Jun 26, 2024
1 parent a797ac6 commit 2b98b86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion application/config/email.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

$smtpass = getenv("SMTPPASS");

$config['protocol'] = 'smtp';
Expand All @@ -11,5 +12,6 @@
$config['smtp_host'] = 'imperial-dekra.gr';
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = $smtpass;
$config['smtp_port'] = '25';
$config['smtp_crypto'] = 'SSL';
$config['smtp_port'] = '465';
$config['smtp_timeout'] = '15';
9 changes: 3 additions & 6 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1077,16 +1077,13 @@ private function _checksignature($inspid) {
}

public function emailsend() {

$this->load->library('email');
$this->email->to('[email protected]');
$this->email->from('[email protected]', 'IMPERIAL-DEKRA');
$this->load->library('email');
$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();


Expand Down

0 comments on commit 2b98b86

Please sign in to comment.