OJS can not send mail

I’m using ojs with xampp 7.2.8 on win 7 pro. But it isn’t working eventhough i try to set up gmail like you recommend https://pkp.sfu.ca/wiki/index.php?title=Using_gmail_SMTP, I can you help me!
thank you!!!

Hi @Oanh_Hoang

You may check this thread that regards with your issue:

A tip at end: you need add third part apps to use your gmail account.


i was try it but it is not working in my ojs. I’m so confuse. I try many way i search in there but nothing, this is error:
[Wed Sep 19 21:38:01.625023 2018] [:error] [pid 1608:tid 1608] [client] Could not instantiate mail function., referer:
Please help me!

Hi @Oanh_Hoang

This message in yout log error:
Could not instantiate mail function

Reminds me this thread with similar issue to yours:


I fix it but it has trouble again. Error:
[Thu Sep 20 09:11:26.348007 2018] [:error] [pid 1616:tid 1668] [client] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub, referer:
Please help me! I’m apologize for my language not good.

Hi @Oanh_Hoang

Have you checked the debug instructions from PHPMailer github?

Please see here:


Hi, @israel.cefrin,
I was try any way you recommend to me but it not working anymore. I don’t know how and what can i do to fix it
Please help me, thank for your help

Hi @Oanh_Hoang

I would suggest to check with your IT staff if you your server has a firewall setting filtering SMTP connection port.


Hello @israel.cefrin,
I check my staff that my server turn off firewall, so that i don’t know how to fix it
thank you!

sebelumnya OJS kami bisa mengirim email by OJS tapi tiba-tiba OJS kami tidak dapat mengirim Email lagi. Mohon bantuannya…

Apakah settingan SMTP di config.inc.php mengalami perubahan? Atau, apakah Anda baru saja melakukan upgrade ke versi OJS

Tidak ada perubahan, dan tidak di upgrade juga. Ojs kami versi Sebelumnya saya menggunakan ssl dengan port 465…

Coba diganti dengan TLS dan port 25. Semoga membantu.

Terimakasih, akhirnya bisa mengirim email kembali :raised_hands:

1 Like