E
E
EVOSandru62018-12-02 22:43:50
Laravel
EVOSandru6, 2018-12-02 22:43:50

How to send an email using SwiftMailer in Laravel 5.7?

Good afternoon,
Has anyone encountered such a problem when sending mail?
Swift_TransportException (503)
Expected response code 354 but got code "503", with message "503 Valid RCPT command must precede DATA

"

try {
       $this->mailer->to($user->email)->send(new VerifyMail($user)); 
} catch (\DomainException $e) {
      Log::warning('Email sending not supported on local');
 }

Tell me please - how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-12-03
@EVOSandru6

Outgoing mail is not configured for authentication.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question