i have a problem when using the build-in option to email an invoice.
To some persons the invoice is delivered correctly as an attachment, to others (me for example), there is no attachment and the pdf is shown encoded in the body of the email as shown below.
In hotmail I see a pdf attached but with 0KB and when i try to open it i get an error and the pdf is empty.
I’m using dolibarr 3.1 stable and phpmail.
I also tested from the online demo (dolibarr 3.2 alpha and phpmail) and it gives the same problem.
Salut Eldy,
Same problem here when upgrading from 3.0 to 3.1
We’re on a Mac OS X 10.5 Leopard Server, using the built-in PHP mail function.
With only a few sends, we have so far failed reports from three Mac and one laPoste.net recipients (they see attachments as garbage) whereas a windows/exchange recipient had no problems.
So far the documents are invoices, orders and proposals, with the crabe, azur and muscadet models, so it seems quite general in the attachment process rather than in a specific module.
I did the upgrade from 3.1.0 to 3.1.1.
I tested mailing a pdf invoice and it does not work yet. Do I need to activate MAIN_FIX_FOR_BUGGED_MTA?
I have been looking for it, however I can’t find how to activate the “hidden option MAIN_FIX_FOR_BUGGED_MTA to fix bugged MTA.”
To enable this option, go into home - setup - other, add a new entry with parameter name = MAIN_FIX_FOR_BUGGED_MTA and value = 1 and click “Add”.
Also, if you can, use the second method of 3.1.1 version to send email (SMTP/SMTPs) that does not use the native php function and should works in every case.