Hello friens!!
I hope you so very very well in this times.
I need your help with somethig, I have an application with Laravel 4.2 since I can send emails via SMTP with Outlook, until a few months ago everything was fine it was working very well. But a few days ago I started to get the following message "ERROR: Expected response code 250 but got code "", with message ""
I have to click up to 6 times and the email is sent, that is the problem, is no working at the first try. I have to try 2, 3, 4 up to 6 until the email is sent
I don't know what to do, so please could you help me with that?
My file mail.php is:
`<?php
return array( 'driver' => 'smtp', 'host' => 'outlook.office365.com', 'port' => 587, 'from' => array('address' => 'myemail@outlook.com', 'name' => 'User outlook'), 'encryption' => 'tls', 'username' => 'myemail@outlook.com', 'password' => 'password?', 'sendmail' => '/usr/sbin/sendmail -bs', 'pretend' => false, );`
I have tried with 'host' => 'smtp-mail.outlook.com' but is no woking too, I got the same issue
Do you have any error logs from your server? Or have you any option to see logs in outlook?
If it works sometimes and sometimes not it possible not a problem in your code but more in the server configuration. Maybe you can ask your provider.
Hi tvbeek,
Thank you for your response, unfortunately the laravel.log is emty, and I think the same, I think my code is not the problem, but I don't know where to see the configuration in my server outlook :(
I'm not familiar enough with server management to pinpoint you directly to the correct log files.
For that you need to have someone who managed your server and/or look at the configuration from your server mail software.
https://docs.aws.amazon.com/ses/latest/dg/troubleshoot-smtp.html , however this error may occur your sender verifications failed also. try to troubleshoot by sending the mail from shell and then re-check the code. if the sender's mail id is not recognized it may also fail to deliver.
thx
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community