Thanks Dave for your help. I have the mail problem only with ion_auth, it's very strange.
EDIT :
It's ok, the config file was not updated on my server ! Sorry, thanks for your help! it's great, it works now.
I had indeed not read all the documentation on this part. My mistake. However I did not read this part because sending mail with CodeIgniter works without a configuration file because it uses my default php configuration it seems to me. Here is a test with CodeIgniter to prove it.
I also read this documentation (
http://benedmunds.com/ion_auth/) but I can not find where the problem comes from. below my ion_auth.php configuration. Do you know why the mails of ion_auth do not work, it seems to me to have well configured everything nevertheless.
Test_mail with CodeIgniter - OK
PHP Code:
<?php
class Test_mail extends CI_Controller
{
public function index()
{
$this->load->library('email');
$this->email->from('contact@aaa.fr', 'gml');
$this->email->to('nicolas@bbb.fr');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
}
}
?>
The mail.info log file OK : The email is correctly sent, I received it
Quote:Nov 27 14:52:06 dev postfix/cleanup[31587]: 8B171E1111: message-id=<5dde8d965fee4@aaa.fr>
Nov 27 14:52:06 dev postfix/qmgr[26164]: 8B171E1111: from=<contact@aaa.fr>, size=561, nrcpt=1 (queue active)
Nov 27 14:52:07 dev postfix/smtp[31589]: 8B171E1111: to=<nicolas@bbb.fr>, relay=aspmx.l.google.com[64.233.167.26]:25, delay=1.1, delays=0.29/0.01/0.26/0.52, dsn=2.0.0, status=sent (250 2.0.0 OK 1574866327 p2si11855207wro.124 - gsmtp)
Nov 27 14:52:07 dev postfix/qmgr[26164]: 8B171E1111: removed
If I try with ion_auth the interface informs me that the recovery email has been sent, but no mail is sent in the log or received in my mailbox
I searched for "use_ci_email" and "email_config" in ion_auth but I did not find anything in your documentation, and it is not easy to know how configured this part, I do not know how to do, or what me problematic. Can you help me please ?
ma configuration ion_auth.php
PHP Code:
`$config['site_title'] = "bbb.fr";
$config['admin_email'] = "contact@bbb.fr";
$config['default_group'] = 'members';
$config['admin_group'] = 'admin';
$config['identity'] = 'email';
$config['min_password_length'] = 8;
$config['email_activation'] = TRUE;
$config['manual_activation'] = FALSE;
$config['remember_users'] = TRUE;
$config['user_expire'] = 86500;
$config['user_extend_on_login'] = FALSE;
$config['track_login_attempts'] = TRUE;
$config['track_login_ip_address'] = TRUE;
$config['maximum_login_attempts'] = 3;
$config['lockout_time'] = 600;
$config['forgot_password_expiration'] = 1800;
$config['recheck_timer'] = 0;
...
| -------------------------------------------------------------------------
| Email options.
| -------------------------------------------------------------------------
| email_config:
| 'file' = Use the default CI config or use from a config file
| array = Manually set your email config settings
*/
$config['use_ci_email'] = TRUE; //I also tried with FALSE // Send Email using the builtin CI email class, if false it will return the code and the identity
$config['email_config'] = [
'mailtype' => 'html',
];
I don't understand the "email_config" and the option information. I did not find the settings in your documentation and we do not know or put 'file', I may be silly sorry.
It's ok, the config file was not updated on my server ! Sorry, thanks for your help! it's great, it works now.