trying to send mail using swift mailer, gmail smtp, php June 15, 2023 by Tarik GMail’s SMTP requires encryption. Use: Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, "ssl");