Changed the SMTP mechanism from Gmail API to regular java mail API