The default Content-Type is text/plain; charset=us-ascii.
The to, from and subject headers are mimewords encoded if they contains non ascii characters… but the charset used for that is extracted from Content-Type and so may be us-ascii, which is not a good charset for mimewords encoding.
I suggest either changing the default Content-Type to text/plain; charset=iso-8859-1 or adding $charset = 'ISO-8859-1' if $charset eq 'us-ascii'; (well, something like that).
The default
Content-Type
istext/plain; charset=us-ascii
. Theto
,from
andsubject
headers are mimewords encoded if they contains non ascii characters… but the charset used for that is extracted fromContent-Type
and so may beus-ascii
, which is not a good charset for mimewords encoding.I suggest either changing the default
Content-Type
totext/plain; charset=iso-8859-1
or adding$charset = 'ISO-8859-1' if $charset eq 'us-ascii';
(well, something like that).What do you think?