Re: PHP mail() turns text with special characters into attachments

Jeroen Belleman <[email protected]>
Newsgroups comp.lang.php
Organization Aioe.org NNTP Server
Message-ID <[email protected]>
On 2022-08-31 14:53, Arno Welzel wrote:
> Jeroen Belleman, 2022-08-31 13:56:
>
>> I use the PHP mail() function to send emails to a special interest group.
>> Some of these mails are in English, no problems, and some of them are in
>> French. For the latter, the message body text gets turned into an
>> attachment, and the mail body remains empty. Apparently, it's the
>> presence of accented characters that triggers this.
>
> Why an attachement?[...]

I realize my wording was ambiguous. I *don't* want the French text
to become an attachment.

I haven't yet worked out the right sequence of incantations, but at
least you have given me a lead. Thanks.

> [...]
>
> Please update to at least PHP 7.4 or 8.0 and make sure your code works
> with that version (there are some breaking changes in PHP 7/8 compared
> to 5):

That's outside my jurisdiction.

Again, thanks.

Jeroen Belleman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.