2
0
forked from Wavyzz/dolibarr

FIX: Update swiftmailer librairies

This commit is contained in:
kamel
2021-12-07 17:11:34 +01:00
parent bd52613331
commit 1ca199d796
156 changed files with 2370 additions and 1637 deletions

View File

@@ -23,22 +23,23 @@
class Swift_SmtpTransport extends Swift_Transport_EsmtpTransport
{
/**
* Create a new SmtpTransport, optionally with $host, $port and $security.
*
* @param string $host
* @param int $port
* @param string $security
* @param string|null $encryption SMTP encryption mode:
* - null for plain SMTP (no encryption),
* - 'tls' for SMTP with STARTTLS (best effort encryption),
* - 'ssl' for SMTPS = SMTP over TLS (always encrypted).
*/
public function __construct($host = 'localhost', $port = 25, $security = null)
public function __construct($host = 'localhost', $port = 25, $encryption = null)
{
call_user_func_array(
array($this, 'Swift_Transport_EsmtpTransport::__construct'),
\call_user_func_array(
[$this, 'Swift_Transport_EsmtpTransport::__construct'],
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.smtp')
);
);
$this->setHost($host);
$this->setPort($port);
$this->setEncryption($security);
$this->setEncryption($encryption);
}
}