Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
convert encryption protocol value to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
serieznyi authored and fabpot committed Apr 30, 2016
1 parent fffbc0e commit 483f1fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/classes/Swift/Transport/EsmtpTransport.php
Expand Up @@ -140,6 +140,10 @@ public function getTimeout()
*/
public function setEncryption($encryption)
{
if (is_string($encryption)) {
$encryption = strtolower($encryption);
}

if ('tls' == $encryption) {
$this->_params['protocol'] = 'tcp';
$this->_params['tls'] = true;
Expand Down

0 comments on commit 483f1fc

Please sign in to comment.