我的 symfony 4 演示应用程序无法使用 dev 默认 swiftmailer 配置发送电子邮件。我的应用程序位于 php-fpm docker 容器中,我对 swiftmailer 的配置是
MAILER_URL=smtp://localhost:25
这是我的日志
[2017-12-17 15:48:43] php.DEBUG: Warning: stream_socket_client(): unable to connect to localhost:25 (Cannot assign requested address)
[2017-12-17 15:48:43] app.ERROR: Exception occurred while flushing email queue: Connection could not be established with host localhost [Cannot assign requested address #99] [] []
提前致谢。