fi for switch sending mail

This commit is contained in:
2021-08-24 20:27:30 +02:00
parent 22c48ed257
commit 9471263605
92 changed files with 5 additions and 192205 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ class Login extends MY_Controller {
$data = ['username' => $username, 'password' => $password, 'fullname' => $this->Users_model->get_fullname( $userid )];
$html = $this->load->view( 'emails/newpassword_mail', $data, TRUE );
if( $_ENV['ENVIRONMENT'] == 'development')
if( $_ENV['ENVIRONMENT'] == 'production')
{
//Deze code wordt alleen op produktie gebruikt en stuurt de mail
//naar Mailgun via een API (Codeigniter email library wordt niet gebruikt