I am trying to send email using SMTP settings in the outbound email settings. I have set all the fields according to this post which would be
SMTP server address : ssl://smtp.gmail.com SMTP server port: 465 SMTP username: [[email protected]/[email protected]] SMTP password: [yourpassword]
I have also commented out CIVICRM_MAIL_LOG in the civicrm.settings.php hence my emails are not sent to a file, for sure. In both mail() and SMTP, the test mail is sent OK according to the popup window (view attached file). But it does not get delivered so it isn't really sent.
I have checked all the related questions. The closest was this CiviCRM not sending mails but the outputs don't match.
[Edit] The mails work now. I have implemented the changes suggested by @Siddharth Gupta, below. Also to allow your gmail to send mails you need to change its security to allow access for less secure apps from here