Dolibarr email not working, cannot send email, used test button in panel and email not received ?
what is the message you get while trying to send the test email?
No message says email sent but is never delivered
Which Dolibarr version? Have you enabled debug logging? are there any information in the dolibarr.log file in the documents folder?
Are there any errors in your PHP log from your webserver?
version 22.03, setup is php, have attached dollibarr.log, how do i check webserver for errors am with hostgator using cpanel.
dolibarr.log (8.7 KB)
Quick update i changed to smtp and that works so looks like an php issue
I don’t know, maybe ask hostgator?
If it’s still not working , maybe switch your SMTP service provider. Maybe the one you choose might have a problem. You can use iDealSMTP, it works just fine for me.
Good catch — and that result tells you exactly what was wrong. On HostGator (cPanel/Exim), the PHP mail() path hands the message to the local mail server with no authentication and usually a Return-Path that doesn’t match your domain, so Exim drops it or the recipient files it as spam. Dolibarr reports “sent” because PHP accepted the hand-off — it never hears about the rejection. That’s why the test looked fine but nothing arrived.
Switching to SMTP (MAIN_MAIL_SENDMODE = smtps) with authenticated credentials fixes the root cause, so you’re on the right track. One thing to do now that you’re on SMTP: make sure the From address you set in Dolibarr is on a domain that publishes SPF and DKIM matching your relay — otherwise you’ll send fine but still hit spam folders for Gmail/Outlook recipients later.
For invoices and reminders specifically, an authenticated relay plus aligned DKIM is what I set up for clients to keep them out of spam. Glad it’s working.
— Ali — Dolibarr AI Consultant / SiliconBlaze.com




