forked from Wavyzz/dolibarr
FIX: Update swiftmailer librairies
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user