One of our Linux VPS customer was unable to send emails through PHPMailer script with Gmail's authentication.
After some investigation, we could fix the issue taking following steps.
- Login to WHM.
- Navigate to ConfigServer Security & Firewall.
- Click on Firewall Configuration.
- Locate the option SMTP_Block and set to '0'.
- Click on Change button.