I have a problem with my application. I try to send email using outlook smtp
. But it doesn't work.
Before I used gmail in the configuration and it worked perfectly :). And for a customer I tried to make it work with outlook. So I try to change the parameter Mailer_url
in the .env
file. After I made the change I tried the command to test:
php bin/console swiftmailer:email:send
It worked fine because I received the email. But when I try via my application it doesn't work.
This is my configuration:
MAILER_URL=smtp://smtp.office365.com:587?encryption=tls&auth_mode=login&username=myaccount@outlook.fr&password=mypassword
Someone have an idea ? Because I don't know why I can send email by command but not by my application. Thank in advance for help :).