从Dev更改为Prod后,我的电子邮件停止通过网站上的联系表到达。
请注意,我不使用gmail。我确实在我的网站上使用SSL。
以下是一些代码:
参数:
mailer_port: 465
mailer_host: myhosthere
mailer_user: myuserhere
mailer_password: mypwhere
config:
swiftmailer:
transport: '%mailer_transport%'
host: '%mailer_host%'
port: '%mailer_port%'
username: '%mailer_user%'
password: '%mailer_password%'
spool: { type: memory }
logging: true
# delivery_addresses: ['']
config_prod:
imports:
- { resource: config.yml }
#doctrine:
# orm:
# metadata_cache_driver: apc
# result_cache_driver: apc
# query_cache_driver: apc
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: '%kernel.logs_dir%/%kernel.environment%.log'
level: debug
console:
type: console
process_psr_3_messages: false