I've WAMP server setup on local dev environment (php_openssl extension enabled). I installed Code Igniter and trying to configure TankAuth, where I want to use GMail (actually Google Apps) to send test mails.
I went through following URLs for configuration
- http://ellislab.com/codeigniter/forums/viewthread/84689/P15 (comment 30 for CI2)
- Sending email to gmail with CodeIgniter displays "message sent" but there nothing in the inbox?
- How to configure WAMP (localhost) to send email using Gmail?
Based on input from above, I updated _send_email
function of tank auth as follow
function _send_email($type, $email, &$data)
{
$this->load->library('email');
$config['protocol'] = "smtp";
$config['smtp_host'] = "ssl://smtp.googlemail.com";
$config['smtp_port'] = "465";
$config['smtp_user'] = "mymail@youthpark.org";//also valid for Google Apps Accounts
$config['smtp_pass'] = "mypass";
$config['charset'] = "utf-8";
$config['mailtype'] = "html";
$config['newline'] = "\r\n";
$this->email->initialize($config);
$this->email->from($this->config->item('webmaster_email', 'tank_auth'), $this->config->item('website_name', 'tank_auth'));
$this->email->reply_to($this->config->item('webmaster_email', 'tank_auth'), $this->config->item('website_name', 'tank_auth'));
$this->email->to($email);
$this->email->subject(sprintf($this->lang->line('auth_subject_'.$type), $this->config->item('website_name', 'tank_auth')));
$this->email->message($this->load->view('email/'.$type.'-html', $data, TRUE));
$this->email->set_alt_message($this->load->view('email/'.$type.'-txt', $data, TRUE));
//$this->email->send();
if ( ! $this->email->send())
{
show_error($this->email->print_debugger());
} else {
//echo('DONE');
}
}
I'm getting message mail sent..
but actually mail was not sent. Can someone please point-out where I'm doing the mistake?
Popup is also enabled in GMail settings