Expected response code 250 but got code , with message
looks like the smtp was blocked for hostinger free users.
http://www.hostinger.ph/forum/news-and-announcements/229-email-service-updates-1.html
Laravel 9 - Infomaniak : Expected response code 250 but got code 550, with message 550 5.7.1 Sender mismatch
Solution found with the help of a laracast.com user by replacing "from" to "replyTo"
In the App\Mail\ContactMail ($this->request->email from form in contact view through ContactRequest)
Old code
public function build()
{
return $this->markdown('emails.resa')
->from($this->request->email)
->subject('Demande de réservation ' . config('app.name'));
}
Changed to
public function build()
{
return $this->markdown('emails.resa')
->replyTo($this->request->email)
->subject('Demande de réservation ' . config('app.name'));
}
Laravel SwiftMailer : Expected response code 250 but got code 530, with message 530-5.5.1 Authentication Required
Try to turn on "less secure apps" of your account on this page. Read this google answer.
Expected response code 250 but got code 550 Laravel swift mailer
I've Fixed the problem after wasting lots of time, hope this answer stop wasting others time.
it was due to local domain name,
we need to define a local name in our mail.php config file which makes our server not to confuse with external server domain name.
'local_domain' => env('MAIL_HOST', 'mail.mydomain.com'),
Related Topics
How to Add Rel="Nofollow" to Links with Preg_Replace()
Destroy PHP Session on Page Leaving
Derived Class Defined Later in the Same File "Does Not Exist"
Add Custom Columns to Admin Products List in Woocommerce 3
Easiest Way to Implode() a Two-Dimensional Array
Selecting Rows Where a Field Is Null Using PHP Pdo Prepared Statements and MySQL
JSON Encode an Entire MySQL Result Set
Detect Retina (Hd) Display on the Server Side
Alternative for Deprecated PHP Function: Eregi_Replace
Wordpress Remove Robots Meta Tag Noindex
Un-Encrypting/Re-Encrypting a Coldfusion Encrypted String in PHP