gryphonshafer / Email-Mailer

Multi-purpose emailer for HTML, auto-text, attachments, and templates
1 stars 1 forks source link

Mismatch between default content-type and encode_mimewords #8

Closed ldidry closed 3 years ago

ldidry commented 3 years ago

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).

What do you think?

ldidry commented 3 years ago

Nevermind: it was a problem with my encoding of the subject.