Did you know that Google Compute engine does not allow outbound connections on port 25, 465 and 587?
By default design, these SMTP ports are not listening by as they are susceptible to a large amount of abuse. Even though standard email ports are blocked, you can choose a non-standard port to send email through.
Sending Emails with WordPress
Choose a third party Email Service and learn how to send emails from your WordPress Server.