How is the email sent? 504 Gateway Time-out error with Gmail account.