http://www.perlmonks.org?node_id=1211205


in reply to Re: UTF-8 Email Form
in thread UTF-8 Email Form

I don't use sendmail directly like this but I'm pretty sure it will fail on the Header fields (To, Cc, Subject, etc) when they contain extra-ASCII. For that you can use Encode/Encode::MIME::Header.

use Encode; my $subject = encode("MIME-Header", $some_utf8_string);