When I send an email with the PHP Swift mailer to this server: smtp.exchange.example.com like this:
// Load transport $this->transport = Swift_SmtpTra
I faced the same problem and solved it. Try to log in manually to your gmail account first. This issue is due to google has detected your gmail account has been abusing. E.g send a lot of emails over a short period of time.