Welcome Guest, Not a member yet? Register   Sign In

I used smtp to send mail ,but it is not working. I set the email.php in config folder is

$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_user'] = "[email protected]";
$config['smtp_pass'] ='passs';
$config['smtp_port'] = '465';
$config['newline'] = '\r\n';
$config['mailtype'] ='html';

But it is not working.It shows the busy cursor only
What should I do?
Please help me. it is very urgent!...

Thanks in advance!....

Try this: Create a new file in your config folder called email.php and paste this in it. It's an override for the email class config variables.
$config['useragent'] =    'CodeIgniter'; //The "user agent".
$config['protocol'] =    'smtp'; //mail, sendmail, or smtp The mail sending protocol.
$config['mailpath'] =    '/usr/sbin/sendmail'; //    None    The server path to Sendmail.
$config['smtp_host']    = 'ssl://smtp.gmail.com';    //None    SMTP Server Address.
$config['smtp_user'] =    '[email protected]';    //None    SMTP Username.
$config['smtp_pass'] =    'pass';    //None    SMTP Password.
$config['smtp_port'] =    465;    //None    SMTP Port.
$config['smtp_timeout'] = '5';    //None    SMTP Timeout (in seconds).
$config['wordwrap'] = TRUE;    //TRUE or FALSE (boolean)    Enable word-wrap.
$config['wrapchars'] =    '76';        //Character count to wrap at.
$config['mailtype'] =    'html';    //text or html    Type of mail. If you send HTML email you must send it as a complete web page. Make sure you don't have any relative links or relative image paths otherwise they will not work.
$config['charset'] =    'utf-8';        //Character set (utf-8, iso-8859-1, etc.).
$config['validate'] =    FALSE;    //TRUE or FALSE (boolean)    Whether to validate the email address.
$config['priority'] =    3;    //1, 2, 3, 4, 5    Email Priority. 1 = highest. 5 = lowest. 3 = normal.
$config['crlf'] =    "\n";     //"\r\n" or "\n" or "\r"     Newline character. (Use "\r\n" to comply with RFC 822).
$config['newline'] =    "\r\n";    //"\r\n" or "\n" or "\r"    Newline character. (Use "\r\n" to comply with RFC 822).
$config['bcc_batch_mode'] = FALSE;    //TRUE or FALSE (boolean)    Enable BCC Batch Mode.
$config['bcc_batch_size'] = '200'; //    None    Number of emails in each BCC batch.

this works for me

Theme © iAndrew 2016 - Forum software by © MyBB