WeAreAthlon / Silla.IO

PHP Application Development Framework.
https://silla.io
GNU General Public License v3.0
25 stars 3 forks source link

Core\Helpers\Mailer Disable SMTP connection authentication when no credentials are specified #73

Closed pnikolov closed 8 years ago

pnikolov commented 8 years ago

Detect when there is no username specified and configure the PHPMailer to not user authentication when connecting to a SMTP.

The SMTPAuth property causes phpmailer to send “AUTH LOGIN” after the “EHLO”, but the credentials are blank so the remote end hangs up.

A better default might be to check that username is set before attempting to login.