I have Drupal Open Social distribution running in Compute Engine on Google Cloud. Compute Engine is essencially a virtual machine, very similar to Amazon EC2.
I have installed the SMTP Authentication module, and am using a google email address to send email, but none of the test emails are working.
Here are the configuration choices for the SMTP Authentication Module:
Turn this module on or off: on
SMTP server: smtp.gmail.com
SMTP port: 465
Use encrypted protocol: Use SSL
Username: The Gmail address
Password: The Gmail password
E-mail from address: The Gmail address
E-mail from name: Default value
E-mail address to send a test e-mail to: Second Gmail address
Save configuration to send the email, Drupal returns the following error message:
Unable to send email. Contact the site administrator if the problem persists.
How can virtual machine and Drupal be configured to send email?