Created
March 20, 2011 09:16
-
-
Save smellman/878222 to your computer and use it in GitHub Desktop.
application/config/email.php : ushahidiでgmailからメール送信できるようにする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' => '[email protected]', | |
'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