Expected Response Code 250 But Got Code "", with Message ""

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



Leave a reply



Submit