Disable SMTP authentication in PHPMailer

Hi all, on OJS I needed a way to disable the SMTP authentication in the configuration.

There was an unavoidable certificate mismatch on the server and I just needed PHPMailer to accept that and submit the outgoing emails. (Its normal behavior would be to catch the certificate problem and reject the email send attempt.)

I tried a number of steps to suppress this authentication but nothing worked so I instead modified OJS config file and the pkp-lib “Mail.inc.php” class. I have submitted two PR’s to change this code on the official Github repositories but figured I should make note of it here as well.

Issue thread
https://github.com/pkp/pkp-lib/issues/5781

PRs:
https://github.com/pkp/ojs/pull/2720
https://github.com/pkp/pkp-lib/pull/5782

This seems to be working as expected now in the production environment.

1 Like

It has been added for OJS 3.2.1 thanks asmecher, very cool :slight_smile:

1 Like