Unable to send email from self hosted

After trying many solutions on the forum I am still unable to send email after last update. I am using v5.7.62-C145 and my env file appears ok, etc. I am seeing this error in the logs:

production.ERROR: Call to undefined function App\Models\mb_ereg_replace() {“exception”:"[object] (Error(code: 0): Call to undefined function App\Models\mb_ereg_replace() at /usr/share/nginx/invoiceninja/app/Models/BaseModel.php:267)
"} Could this be related to my issue?

Hi,

I suggest checking that the mb_string PHP extension is enabled.

No, the problem was I had the Mailgun api enabled for the client(s) and I previously had it enabled in the SMTP settings also. Removing it from the client settings page and setting it to ‘Default’ seems to have fixed the problem. Seems that the email settings in the app don’t work with MG for now.

Thanks for the update!

cc @david