Permalink
Browse files

Merge pull request #54 from bystac/swift-encryption

Add support for smtp encryption protocol
  • Loading branch information...
mikelbring committed Jun 10, 2012
2 parents f947c6a + 703457b commit 1a635f189303a1f46bd9b563f083db109edb9222
Showing with 7 additions and 1 deletion.
  1. +1 −1 app/application/libraries/mail.php
  2. +6 −0 config.app.example.php
@@ -25,7 +25,7 @@ private static function transport($default = null)
break;
case 'smtp':
- $transport = Swift_SmtpTransport::newInstance($options['smtp']['server'], $options['smtp']['port'])
+ $transport = Swift_SmtpTransport::newInstance($options['smtp']['server'], $options['smtp']['port'], $options['smtp']['encryption'])
->setUsername($options['smtp']['username'])
->setPassword($options['smtp']['password']);
View
@@ -56,6 +56,12 @@
'smtp' => array(
'server' => '',
'port' => 25,
+
+ /*
+ * Encryption support, SSL/TLS, used with gmail servers
+ * Default: blank
+ */
+ 'encryption' => ''
'username' => '',
'password' => '',
),

0 comments on commit 1a635f1

Please sign in to comment.