Closed steflight closed 7 years ago
Hi whats your config settings for email_config
?
'email_config' => array(
'user-agent' => 'Codeigniter',
'protocol' => 'sendmail',
'mail_path' => '/usr/sbin/sendmail',
'mailtype' => 'html',
'smtp_user' => '',
'smtp_pass' => '',
),
First overall do you use it from XAMPP or something like that? If yes sendmail isn't avaible there.
Second did you tried the mail
protocol instead of sendmail
?
i'm working on my online server http://test.gethome.biz/t2/
when i try to send a simple mail with codeigniter as shown in documentation i succeed.
but there is problem when i try with Aauth
did you tried Aauth without config settings?
yes , with config_email = false
Place $this->CI->email->print_debugger();
after $this->CI->email->send();
in the send_verification()
function of your Aauth.php
yes i put it ;
1 - $this->aauth->create_user('agoumekoufanas@gmail.com','frodopass','god'); // my function
2 - 'email_config' => array(
'user-agent' => 'Codeigniter',
'protocol' => 'sendmail',
'mail_path' => '/usr/sbin/sendmail',
'mailtype' => 'html',
'smtp_user' => '',
'smtp_pass' => '',
), // my config
did you get a output from print_debugger()
?
yes , click on this link : http://test.gethome.biz/t2/ i will check my email box
i dont see the output now it say its already registered 😄
if you replace create_user(*)
with send_verification($this->aauth->get_user_id('agoumekoufanas@gmail.com'))
you can reproduce the debugger output.
please try : http://test.gethome.biz/t2/
ok i see :D you need to change your mail from, gmail block these if they are not correct.
From: "Emre Akay" admin@admin.com
ok , i changed , i set my own email
thats spam like too and get blocked, set it like no_reply@test.gethome.biz
Oh and set your base_url
in the config.php to set the correct link in the verification mail.
this is my base_url ; $config['base_url'] = ''; , i set the email to no_reply@...
set it to http://test.gethome.biz/t2/
mail is ok check if you get your mail, it could be in your spam folder after the spam like sends 😄
you are a genius , i want to contribute
perfect now you can remove the print_debugger()
line.
At moment Aauth v3 is in development phase, if you have some feature suggestions post them in #151.
yes , great thank , are you on watsapp ?
yep i send you a mail 😸
You can close this issue, if its works right 😃
I'll close this issue, if you have some other problems feel free to open a new issue 😄
since yesterday i try to config Aauth but , no mail sent