# Automatic emails stopped working after V20-upgrade

**URL:** <https://www.dolibarr.org/forum/t/automatic-emails-stopped-working-after-v20-upgrade/30065>\
**Category:** Other native modules\
**Created:** [March 5, 2025, 9:56am UTC](https://www.dolibarr.org/forum/t/automatic-emails-stopped-working-after-v20-upgrade/30065 "2025-03-05T09:56:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gurksallad](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/9d8465/32.png) [@gurksallad](https://www.dolibarr.org/forum/u/gurksallad)\
**Post date:** [March 5, 2025, 9:56am UTC](https://www.dolibarr.org/forum/t/automatic-emails-stopped-working-after-v20-upgrade/30065/1 "2025-03-05T09:56:49Z")

</div>

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](mailto:mail@example.com), [to=someone@example.com](mailto: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](mailto:addr_bcc=someone@example.com), replyto=Correct info here [mail@example.com](mailto: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](mailto: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](mailto: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](https://github.com/Dolibarr/dolibarr/issues/33338).

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [March 5, 2025, 5:14pm UTC](https://www.dolibarr.org/forum/t/automatic-emails-stopped-working-after-v20-upgrade/30065/2 "2025-03-05T17:14:21Z")

</div>

which dolibarr version?

which notification triggers do you have?

I use proposal validated, order validated and invoice paid - I run v20.0.2 and have not experienced issues

---

<div class="post-metadata">

**Author:** ![gurksallad](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/9d8465/32.png) [@gurksallad](https://www.dolibarr.org/forum/u/gurksallad)\
**Post date:** [March 6, 2025, 7:21am UTC](https://www.dolibarr.org/forum/t/automatic-emails-stopped-working-after-v20-upgrade/30065/3 "2025-03-06T07:21:00Z")

</div>

V20.0.2. I use the following triggers:

 ![Untitled](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/3/3ba9bbadae32d613720ba29f59ab12b50b120813.png)

---

<div class="post-metadata">

**Author:** ![gurksallad](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/9d8465/32.png) [@gurksallad](https://www.dolibarr.org/forum/u/gurksallad)\
**Post date:** [March 6, 2025, 7:24am UTC](https://www.dolibarr.org/forum/t/automatic-emails-stopped-working-after-v20-upgrade/30065/4 "2025-03-06T07:24:33Z")

</div>

I found the error. After the upgrade, the “Sender email (From) for emails sent by the Notifications module” field was empty. After refilling it, notification works again.

 ![Untitled2](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/7/79f56a1f8298d8fff372f01d0fc9b94b49631cb6.png)
