I have problem while trying to configure smtp using ssl (Contao 4.4):
this works:
parameters.yml
Code:
swiftmailer:
...
...
port: 587
encryption: null
but this does not work:
parameters.yml
Code:
swiftmailer:
...
...
port: 465
encryption: ssl
Code:
app.CRITICAL: An exception occurred. {"exception":"[object] (Swift_TransportException(code: 0): Connection could not be established with host *********** [ #0] at /srv/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:277)"} []
I tried to put this into pararameters.yml
Code:
swiftmailer:
...
...
port: 465
encryption: ssl
stream_options:
ssl:
verify_peer: false
verify_peer_name: false
But this gives contao manager error:
Code:
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
In ArrayNode.php line 375:
merge() expects a normalized config array.
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
In ScriptHandler.php line 113:
An error occurred while executing the "contao:install-web-dir" command:
In ArrayNode.php line 375:
merge() expects a normalized config array.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
# Process terminated with exit code 1
# Result: General error
---
### The background task has stopped unexpectedly ###
Bookmarks