Thanks @gian !
Though the things aren’t working as mentioned in phpmailer/ojs guides (such as on live web environment, get_oauth_token.php doesn’t result in refresh token), I somehow was able to sort this issue by:
-
Generated the refresh token in localhost environment as suggested by PHPMailer support (mentioned above).
-
Used
smtp_port = 587
andsmtp_auth = tls
in config.inc.php file
This resolved the smtp connection issue.
However, now I am facing the next problem. if you, or someone else, can help me?