Friday, November 15, 2013

php codeigniter config for email library send using gmail

<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

//webmaster email
$config['noreply_email_setting'] = Array(
    'protocol' => 'smtp',
    'mailpath' => '/usr/sbin/sendmail',
    'smtp_crypto' => 'tls',//tls or ssl
    'smtp_host' => 'smtp.gmail.com',//'ssl://smtp.googlemail.com'//ssl://smtp.gmail.com
    'smtp_port' => 587,//465//25
    'smtp_timeout' => 5,
    'smtp_user' => 'boroog@gmail.com',
    'smtp_pass' => '******',
    'mailtype' => 'html',
    'charset' => 'utf-8',
    'newline' => "\r\n",
    'wordwrap' => TRUE,
    'validation' => TRUE // bool whether to validate email or not
);



No comments: