Change of domain (with parking on and making necessary changes in config file), now emails are not working [OJS 3.1.1.4]

None of the email services are working. I am getting this error.

[29-Dec-2018 15:06:02 UTC] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/u796555399/public_html/lib/pkp/lib/vendor/phpmailer/phpmailer/class.phpmailer.php on line 1444
[29-Dec-2018 15:06:02 UTC] Could not instantiate mail function.

Suddenly this has started. None of the emails are working.

[21-Jan-2019 21:33:11 UTC] PHP 13. PHPMailer->send() /home/u232447982/domains/jmrionline.com/public_html/lib/pkp/classes/mail/Mail.inc.php:522
[21-Jan-2019 21:33:11 UTC] PHP 14. PHPMailer->postSend() /home/u232447982/domains/jmrionline.com/public_html/lib/pkp/lib/vendor/phpmailer/phpmailer/class.phpmailer.php:1215
[21-Jan-2019 21:33:11 UTC] PHP 15. PHPMailer->mailSend() /home/u232447982/domains/jmrionline.com/public_html/lib/pkp/lib/vendor/phpmailer/phpmailer/class.phpmailer.php:1339
[21-Jan-2019 21:33:11 UTC] PHP 16. PHPMailer::isShellSafe() /home/u232447982/domains/jmrionline.com/public_html/lib/pkp/lib/vendor/phpmailer/phpmailer/class.phpmailer.php:1487
[21-Jan-2019 21:33:11 UTC] PHP 17. escapeshellcmd() /home/u232447982/domains/jmrionline.com/public_html/lib/pkp/lib/vendor/phpmailer/phpmailer/class.phpmailer.php:1444
[21-Jan-2019 21:33:11 UTC] Could not instantiate mail function.

This is urgent, pls help.

How to use SMTP instead of PHPMail. I have already enabled SMTP, however the OJS still uses PHPMailer

what do your smtp settings look like in config.inc.php (of course excluding the password)

I was using ssl for port 587. However, I spoke to the server engineer and he said that to use tls for it and it worked.

1 Like