Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send activation email #178

Closed
steflight opened this issue Nov 28, 2016 · 27 comments
Closed

send activation email #178

steflight opened this issue Nov 28, 2016 · 27 comments

Comments

@steflight
Copy link

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

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

Hi whats your config settings for email_config?

@steflight
Copy link
Author

steflight commented Nov 28, 2016

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

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

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
Copy link
Author

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

@steflight
Copy link
Author

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

@steflight
Copy link
Author

but there is problem when i try with Aauth

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

did you tried Aauth without config settings?

@steflight
Copy link
Author

yes , with config_email = false

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

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

@steflight
Copy link
Author

yes i put it ;
1 - $this->aauth->create_user('[email protected]','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
Copy link
Collaborator

REJack commented Nov 28, 2016

did you get a output from print_debugger()?

@steflight
Copy link
Author

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

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

i dont see the output now it say its already registered 😄
if you replace create_user(*) with send_verification($this->aauth->get_user_id('[email protected]')) you can reproduce the debugger output.

@steflight
Copy link
Author

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

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

ok i see :D you need to change your mail from, gmail block these if they are not correct.

From: "Emre Akay" [email protected]

@steflight
Copy link
Author

ok , i changed , i set my own email

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

thats spam like too and get blocked, set it like [email protected]

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

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

@steflight
Copy link
Author

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

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

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

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

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

@steflight
Copy link
Author

image
you are a genius ,
i want to contribute

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

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
Copy link
Author

yes , great thank , are you on watsapp ?

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

yep i send you a mail 😸

@REJack
Copy link
Collaborator

REJack commented Nov 28, 2016

You can close this issue, if its works right 😃

@REJack
Copy link
Collaborator

REJack commented Dec 11, 2016

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

@REJack REJack closed this as completed Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants