I have the following problem when I try to send an email with a quick Symfony2 project: An exception occurred while cleaning the email queue: the expected response code is 220, but received the code "with message".
I am in localhost and I am trying to use my OVH host mail. Here is my config.yml:
swiftmailer:
transport: "%mailer_transport%"
auth_mode: "%mailer_auth_mode%"
host: "%mailer_host%"
port: "%mailer_port%"
username: "%mailer_user%"
password: "%mailer_password%"
spool: { type: memory }
And my .yml options:
parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: ********
database_user: root
database_password: null
mailer_transport: mail
mailer_auth_mode: login
mailer_host: ns0.ovh.net
mailer_port: 587
mailer_user: contact@******.com
mailer_password: **********
locale: fr
secret: ThisTokenIsNotSoSecretChangeIt
thank
source
share