ci-bonfire/Bonfire — Issue #237: Sending through Gmail not working with settings entered in admin form
Author: wermut
Created: 2011-10-10 12:04:06+00:00
State: open

I have tried to configure Gmail SMTP settings through the admin form provided by bonfire 0.2 , but email sending fails terribly. After manually configuring the settings in bonfire/application/config/email.php, using the following template:

$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.gmail.com';
$config['smtp_port'] = '465';
$config['smtp_timeout'] = '7';
$config['smtp_user'] = 'mygmail@gmail.com';
$config['smtp_pass'] = '*******';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'text'; // or html
$config['validation'] = TRUE; // bool whether to validate email or not

All workd perfectly. I had to set even the charset for getting working email. The solution was borrowed by the code snippet found on: http://stackoverflow.com/questions/1555145/sending-email-with-gmail-smtp-with-codeigniter-email-library

Regards