Commit d622daa3 authored by leClaude's avatar leClaude

Swiftmailer SSL stream_context_options cannot be set #1582 :

Adding stream_context_options to the $app['swiftmailer.options']
parent c62cfba1
......@@ -62,6 +62,7 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface, EventListe
'password' => '',
'encryption' => null,
'auth_mode' => null,
'stream_context_options' => [],
), $app['swiftmailer.options']);
$transport->setHost($options['host']);
......@@ -70,6 +71,7 @@ class SwiftmailerServiceProvider implements ServiceProviderInterface, EventListe
$transport->setUsername($options['username']);
$transport->setPassword($options['password']);
$transport->setAuthMode($options['auth_mode']);
$transport->setStreamOptions($options['stream_context_options']);
return $transport;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment