Control of mail sending in OJS

Is it possible to disable the both smtp and mail () function in OJS
We suspect that spam users are sending mails that we cannot stop.


Hi @vvucic,

To quickly disable all email sending, edit lib/pkp/classes/mail/ and add to the top of the send() function:


I’d be interested in more about this if you’re able to determine that OJS is being used in the way you describe.

Alec Smecher
Public Knowledge Project Team

Hello, I guess that is line 452 if I have seen it properly.