OJS 3.0.1 is not sending any emails

Hi PKP Forum,
I am contributing a solution that worked for me (a total noob) for this problem, so maybe it will help someone else out there, too. I also struggled to get SMTP email with a gmail account working. The forums suggested

  1. set the SMTP settings (https://pkp.sfu.ca/wiki/index.php/Using_gmail_SMTP) in config.inc.php
  2. check firewall settings

$ nc -zv smtp.gmail.com 465

Connection to smtp.gmail.com 587 port [tcp/submission] succeeded!

Then it was supposed to work. A couple hours of struggling later, I realized that I edited the wrong config file.

MORAL OF THE STORY:

Edit

/var/www/html/config.inc.php

NOT

/var/www/ojs/config.inc.php

(oops). Live and learn…