Skip to content

Instantly share code, notes, and snippets.

@smellman
Created March 20, 2011 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smellman/878222 to your computer and use it in GitHub Desktop.
Save smellman/878222 to your computer and use it in GitHub Desktop.
application/config/email.php : ushahidiでgmailからメール送信できるようにする
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* SwiftMailer driver, used with the email helper.
*
* @see http://www.swiftmailer.org/wikidocs/v3/connections/nativemail
* @see http://www.swiftmailer.org/wikidocs/v3/connections/sendmail
* @see http://www.swiftmailer.org/wikidocs/v3/connections/smtp
*
* Valid drivers are: native, sendmail, smtp
*/
#$config['driver'] = 'native';
$config['driver'] = 'smtp';
/**
* To use secure connections with SMTP, set "port" to 465 instead of 25.
* To enable TLS, set "encryption" to "tls".
*
* Driver options:
* @param null native: no options
* @param string sendmail: executable path, with -bs or equivalent attached
* @param array smtp: hostname, (username), (password), (port), (auth), (encryption)
*/
#$config['options'] = NULL;
$config['options'] = array('hostname' => 'smtp.googlemail.com',
'username' => 'btm@smellman.org',
'password' => 'homuhomumogumogu',
'port' => '465',
'encryption' => 'tls'
);
$config['max_imap_messages'] = 10;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment