Page 1 of 1

Anonymous SMTP Authentication

Posted: Fri Sep 09, 2022 3:24 pm
by Malfuris
After upgrading Hesk to 3.3.2, which uses PHPMailer, anonymous authentication to our SMTP server no longer works. I managed to work around it by changing the following code:

Code: Select all

$mailer->SMTPAuth = true;
to "false" in inc/email_functions.inc.php.

However, I imagine future updates may revert this code, and I was thinking it would be useful if "anonymous authentication" could be a toggle in the Email settings in the UI. It would then be a variable in the email_functions.inc.php file and wouldn't get overwritten when upgrading. I'm not sure if this is the place to submit suggestions like this, but I couldn't really find anywhere else.

Re: Anonymous SMTP Authentication

Posted: Fri Sep 09, 2022 5:21 pm
by Klemen
That's a known issue, here's a fix available:

1. download this archive: https://www.hesk.com/extras/hesk3/hesk3 ... noauth.zip
2. upload the "email_functions.inc.php" file inside to your Hesk "inc" folder (overwrite the existing file)
3. test

This fix will also be included in the next update.

Re: Anonymous SMTP Authentication

Posted: Fri Sep 09, 2022 5:46 pm
by Malfuris
Awesome, thank you for the quick reply!