emreakay / CodeIgniter-Aauth

Authorization, Authentication and User Management library for Codeigniter 2.x and 3.x to make easy user management and permission operations
http://emreakay.com
GNU Lesser General Public License v3.0
392 stars 235 forks source link

send activation email #178

Closed steflight closed 7 years ago

steflight commented 7 years ago

since yesterday i try to config Aauth but , no mail sent

REJack commented 7 years ago

Hi whats your config settings for email_config?

steflight commented 7 years ago

'email_config' => array( 'user-agent' => 'Codeigniter', 'protocol' => 'sendmail', 'mail_path' => '/usr/sbin/sendmail', 'mailtype' => 'html',
'smtp_user' => '', 'smtp_pass' => '', ),

REJack commented 7 years ago

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?

steflight commented 7 years ago

i'm working on my online server http://test.gethome.biz/t2/

steflight commented 7 years ago

when i try to send a simple mail with codeigniter as shown in documentation i succeed.

steflight commented 7 years ago

but there is problem when i try with Aauth

REJack commented 7 years ago

did you tried Aauth without config settings?

steflight commented 7 years ago

yes , with config_email = false

REJack commented 7 years ago

Place $this->CI->email->print_debugger(); after $this->CI->email->send(); in the send_verification() function of your Aauth.php

steflight commented 7 years ago

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

REJack commented 7 years ago

did you get a output from print_debugger()?

steflight commented 7 years ago

yes , click on this link : http://test.gethome.biz/t2/ i will check my email box

REJack commented 7 years ago

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.

steflight commented 7 years ago

please try : http://test.gethome.biz/t2/

REJack commented 7 years ago

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

steflight commented 7 years ago

ok , i changed , i set my own email

REJack commented 7 years ago

thats spam like too and get blocked, set it like no_reply@test.gethome.biz

REJack commented 7 years ago

Oh and set your base_url in the config.php to set the correct link in the verification mail.

steflight commented 7 years ago

this is my base_url ; $config['base_url'] = ''; , i set the email to no_reply@...

REJack commented 7 years ago

set it to http://test.gethome.biz/t2/

REJack commented 7 years ago

mail is ok check if you get your mail, it could be in your spam folder after the spam like sends 😄

steflight commented 7 years ago

image you are a genius , i want to contribute

REJack commented 7 years ago

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.

steflight commented 7 years ago

yes , great thank , are you on watsapp ?

REJack commented 7 years ago

yep i send you a mail 😸

REJack commented 7 years ago

You can close this issue, if its works right 😃

REJack commented 7 years ago

I'll close this issue, if you have some other problems feel free to open a new issue 😄