Skip to content

Commit

Permalink
email config
Browse files Browse the repository at this point in the history
  • Loading branch information
smgladkovskiy committed Sep 6, 2011
1 parent 7513d56 commit 0de72e5
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion classes/controller/core/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function before()

/**
* Old path redirect
*
*
* @return void
*/
public function action_user()
Expand Down
32 changes: 32 additions & 0 deletions config/email.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php defined('SYSPATH') OR die('No direct access allowed.');
return array(
/**
* SwiftMailer driver, used with the email module.
*
* Valid drivers are: native, sendmail, smtp
*/
'driver' => 'native',

/**
* To use secure connections with SMTP, set "port" to 465 instead of 25.
* To enable TLS, set "encryption" to "tls".
*
* Note for SMTP, 'auth' key no longer exists as it did in 2.3.x helper
* Simply specifying a username and password is enough for all normal auth methods
* as they are autodeteccted in Swiftmailer 4
*
* PopB4Smtp is not supported in this module as I had no way to test it but
* SwiftMailer 4 does have a PopBeforeSMTP plugin so it shouldn't be hard to implement
*
* Encryption can be one of 'ssl' or 'tls' (both require non-default PHP extensions
*
* Driver options:
* @param null native: no options
* @param string sendmail: executable path, with -bs or equivalent attached
* @param array smtp: hostname, (username), (password), (port), (encryption)
*/
'options' => NULL,

'email_registration' => 'registration@somesite.com',
'email_noreply' => array('noreply@somesite.com', 'SoemSite.ru'),
);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0de72e5

Please sign in to comment.