Answer the question
In order to leave comments, you need to log in
How to send email via google smpt?
Project in laravel.
Sending email using google smpt.
Settings in .env
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=tester_pass
MAIL_ENCRYPTION=tls
"Swift_TransportException"
file: "/var/www/h1442/data/www/staleks.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php"
line: 269
message: "Connection could not be established with host smtp.gmail.com [Connection timed out #110]"
Answer the question
In order to leave comments, you need to log in
Start by executing the command on the host where your script is running.
If you see something like
Trying 2a00:1450:4010:c0b::6d...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP g11-v6sm1988764ljk.45 - gsmtp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question