【发布时间】:2017-09-18 23:09:15
【问题描述】:
Platform.sh 不允许通过 SSH 编辑 parameters.yml 或任何其他文件。如何配置 SMTP 以使用 Symfony 应用程序的 SwiftMailer 发送邮件? This 文档说
在 Symfony 中,如果您使用默认的 SwiftMailer 服务,我们建议您在 app/config/parameters.yaml 中进行以下设置:
parameters:
mailer_transport: sendmail
mailer_host: null
mailer_user: null
mailer_password: null
但我认为,我使用的是配置错误的现有应用程序。这就是我现在在 parameters.yml 文件中的内容:
# This file is auto-generated during the composer install
parameters:
database_host: 127.0.0.1
database_port: null
database_name: symfony
database_user: root
database_password: null
mailer_transport: smtp
mailer_host: null
mailer_user: null
mailer_password: null
secret: ThisTokenIsNotSoSecretChangeIt
我该如何解决这个问题?
【问题讨论】:
标签: symfony email deployment swiftmailer