We have setup that a mail is sent out as soon as a customer has signed the proposal. These mail stopped working and I’ve been trying to find out why and I found some errors in the logs.
First, here is the log when sending a test email (I have replaced the actual email adresses with something else):
2025-03-05 09:46:18 INFO 155.4.131.197 1530 427852 CMailFile::CMailfile: charset=UTF-8 from=Correct info here mail@example.com, to=someone@example.com, addr_cc=, addr_bcc=, errors_to=, replyto= trackid=test sendcontext=standard
2025-03-05 09:46:18 DEBUG 155.4.131.197 1530 427852 CMailFile::CMailfile: subject=Test, deliveryreceipt=, msgishtml=-1
2025-03-05 09:46:18 DEBUG 155.4.131.197 1530 427852 CMailFile::CMailfile: msgishtml=0
2025-03-05 09:46:18 DEBUG 155.4.131.197 1530 427852 CMailFile::CMailfile: sendmode=smtps addr_bcc=someone@example.com, replyto=Correct info here mail@example.com
2025-03-05 09:46:18 NOTICE 155.4.131.197 1530 427852 CMailFile::sendfile: sendMsg, HOST=tls://send.one.com, PORT=587
2025-03-05 09:46:18 DEBUG 155.4.131.197 1530 427852 CMailFile::sendfile: mail end success
Here’s the log file when a proposal is signed:
2025-03-05 09:43:29 INFO 155.4.131.197 30739 427852 CMailFile::CMailfile: charset=UTF-8 from=, to=someone@example.com, addr_cc=, addr_bcc=, errors_to=, replyto= trackid= sendcontext=notification
2025-03-05 09:43:29 DEBUG 155.4.131.197 30739 427852 CMailFile::CMailfile: subject=[Example] Automatic notification, deliveryreceipt=0, msgishtml=1
2025-03-05 09:43:29 DEBUG 155.4.131.197 30739 427852 CMailFile::CMailfile: msgishtml=1
2025-03-05 09:43:29 DEBUG 155.4.131.197 30739 427852 CMailFile::CMailfile: sendmode=smtps addr_bcc=someone@example.com, replyto=
2025-03-05 09:43:29 ERR 155.4.131.197 30739 427852 CMailFile::sendfile: mail end error=Failed to send mail with smtps lib to HOST=tls://send.one.com, PORT=587 - Sender address ‘’ invalid
Somehow, the “from=” gets empty here and it seems this is the reason it fails. Sending test emails and sending invoices (or anything, really) with email from within Dolibarr works fine, but the automatic notifications have all stopped working.
I have created a bugreport in #33338.