Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #54 from bystac/swift-encryption

Add support for smtp encryption protocol
  • Loading branch information...
commit 1a635f189303a1f46bd9b563f083db109edb9222 2 parents f947c6a + 703457b
@mikelbring authored
Showing with 7 additions and 1 deletion.
  1. +1 −1  app/application/libraries/mail.php
  2. +6 −0 config.app.example.php
View
2  app/application/libraries/mail.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
6 config.app.example.php
@@ -56,6 +56,12 @@
'smtp' => array(
'server' => '',
'port' => 25,
+
+ /*
+ * Encryption support, SSL/TLS, used with gmail servers
+ * Default: blank
+ */
+ 'encryption' => ''
'username' => '',
'password' => '',
),
Please sign in to comment.
Something went wrong with that request. Please try again.