Smtp relay - gmail - swiftmailer: expected response code 220, but received code ""

I use gmail as an smtp server for my swiftmailer class.

however i get

The expected response code is 220, but received the code ", with the message" "in" \ classes \ Swift \ Transport \ AbstractSmtpTransport.php "

What does it mean?

+2
source share
2 answers

I think this probably means that you sent an empty string to the SMTP server.

Make sure that none of your teams have line channels in them.

Can you register a transaction and insert a copy of the log?

see here for details on registering http://swiftmailer.org/docs/logger-plugin

0
source

I got this when I had the wrong setting in the factory.yml file as shown below.

class: Swift_SendmailTransport

But it should be the following.

class: Swift_SmtpTransport

0
source

Source: https://habr.com/ru/post/1266308/


All Articles