Skip to content

Instantly share code, notes, and snippets.

@juliocapuano
Forked from nicolechung/email.php
Created July 4, 2018 15:34
Show Gist options
  • Save juliocapuano/4e3f721d07a68ab503b0ad95e354c644 to your computer and use it in GitHub Desktop.
Save juliocapuano/4e3f721d07a68ab503b0ad95e354c644 to your computer and use it in GitHub Desktop.
Codeigniter: Email config for gmail/google apps mail
<?php if (! defined('BASEPATH')) exit ('No direct access allowed');
/*
| -------------------------------------------------------------------
| EMAIL CONFING
| -------------------------------------------------------------------
| Configuration of outgoing mail server.
| */
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = '465';
$config['smtp_timeout'] = '30';
$config['smtp_user'] = 'my-gmail-or-googleapps-mail-address';
$config['smtp_pass'] = 'my-gmail-password';
$config['charset'] = 'utf-8';
$config['newline'] = '\r\n';
$config['mailtype'] = 'html';
/* End of file email.php */
/* Location application/config/email.php */
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment