Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.42k stars 2.78k forks source link

phpmail broken with MAIN_FIX_FOR_BUGGED_MTA #31079

Open ymollard opened 1 month ago

ymollard commented 1 month ago

Bug

From a fresh Dolibarr 20.0.0, the default phpmailer sends corrupted e-mails. Both Roundcube and Mozilla Thunderbird interpret parts of the headers (e.g. enclosed PDF filename) as recipients.

If I set e-mail settings to other sending method (such as SMTP/SMTPS socket library), then this bug does not occur.

I am not sure whether this is a bug introduced by the server's phpmail configuration, so I would need the help of someone to corroborate that bug.

image

Dolibarr Version

20.0.0

Environment PHP

8.1

Environment Database

No response

Steps to reproduce the behavior and expected behavior

Attached files

No response

ymollard commented 1 week ago

Update: it seems due to the MAIN_FIX_FOR_BUGGED_MTA that was TRUE on all my Dolibarr setups: is that variable useful in 2024? Can it be defaulted to FALSE?