Send email via Gmail SMTP server in PHP
Gmail SMTP
2025-12-12 06:15:40 SERVER -> CLIENT: 220-ambient.aslinser2.com ESMTP Exim 4.99 #2 Fri, 12 Dec 2025 06:15:40 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
2025-12-12 06:15:40 CLIENT -> SERVER: EHLO 204.12.204.171
2025-12-12 06:15:40 SERVER -> CLIENT: 250-ambient.aslinser2.com Hello 204.12.204.171 [204.12.204.170]250-SIZE 52428800250-LIMITS MAILMAX=1000 RCPTMAX=50000250-8BITMIME250-PIPELINING250-PIPECONNECT250-AUTH PLAIN LOGIN250-STARTTLS250 HELP
2025-12-12 06:15:40 CLIENT -> SERVER: STARTTLS
2025-12-12 06:15:40 SERVER -> CLIENT: 220 TLS go ahead
SMTP Error: Could not connect to SMTP host.
2025-12-12 06:15:40 CLIENT -> SERVER: QUIT
2025-12-12 06:15:40
2025-12-12 06:15:40
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting