i am trying to send email with attachment in PHP using SMTP and PEAR but getting the error as \"authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Rea
Here example code how to send tls/ssl emails with php to gmail smtp servers https://github.com/breakermind/PhpMimeParser/blob/master/PhpSmtpSslSocketClient.php It very simple with php stream sockets (**You need allow in mail.com panel send email from external apps **)