Welcome Guest, Not a member yet? Register   Sign In
tank auth activation email
#1

[eluser]andes[/eluser]
Hi,

I installed the tank auth user management library. It seems to work all fine, the database tables and everything. The only problem is that i do not receive an activation email that its suppose to send. It doesn't give me any errors, it says successfully sent, but I receive nothing in my inbox. Below is my application/config/email.php file settings

Code:
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = '25';
$config['smtp_timeout'] = '30';
$config['smtp_user'] = 'gmail user name';
$config['smtp_pass'] = 'gmail passwork';
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = '\r\n';


Does anyone seem to know what may be the problem?
#2

[eluser]JonoB[/eluser]
[quote author="andes" date="1312658358"]Hi,

I installed the tank auth user management library. It seems to work all fine, the database tables and everything. The only problem is that i do not receive an activation email that its suppose to send. It doesn't give me any errors, it says successfully sent, but I receive nothing in my inbox. Below is my application/config/email.php file settings

Code:
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = '25';
$config['smtp_timeout'] = '30';
$config['smtp_user'] = 'gmail user name';
$config['smtp_pass'] = 'gmail passwork';
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = '\r\n';


Does anyone seem to know what may be the problem?[/quote]

Are you able to send other emails through CI using those settings? I'm guessing that they are wrong...last time I checked gmail did not allow port 25 to be used. See https://mail.google.com/support/bin/answ...swer=13287
#3

[eluser]andes[/eluser]
Okay, I followed that link and changed to the 465 port. Now I get the following:

Code:
hello:

The following SMTP error was encountered:
Failed to send AUTH LOGIN command. Error:

from:

The following SMTP error was encountered:

to:

The following SMTP error was encountered:

data:

The following SMTP error was encountered:

The following SMTP error was encountered:
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

Any help on this?
#4

[eluser]andes[/eluser]
I got it working. I entered the following code in my controller file. And to make Tank AUTH work, I entered this code below in the _send_email function in the auth.php controller file

Code:
$this->load->library('email');
$config['protocol'] = "smtp";
$config['smtp_host'] = "ssl://smtp.googlemail.com";
$config['smtp_port'] = "465";
$config['smtp_user'] = "gmail user name";//also valid  Google Apps Accounts
$config['smtp_pass'] = "gmail password";
$config['charset'] = "utf-8";
$config['mailtype'] = "html";
$config['newline'] = "\r\n";
$this->email->initialize($config);

hope it helps anyone else having smtp problems.

I got the code from the following thread

http://ellislab.com/forums/viewthread/84689/P15/




Theme © iAndrew 2016 - Forum software by © MyBB