OJS can not send mail

I’m using ojs 3.1.1.2 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!
please!!!
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.

Best,
Israel

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 171.239.67.81:51491] Could not instantiate mail function., referer: http://113.161.151.124:8083/ojs/index.php/journal-02/management/settings/access
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:

Best,
Israel

I fix it but it has trouble again. Error:
[Thu Sep 20 09:11:26.348007 2018] [:error] [pid 1616:tid 1668] [client 42.119.99.51:33978] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub, referer: http://113.161.151.124:8083/ojs/index.php/journal-02/management/settings/access
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:

Best,
Israel

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.

Best,
Israel

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 3.3.0.8?

Tidak ada perubahan, dan tidak di upgrade juga. Ojs kami versi 2.4.8.1. 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