Subject: | Documentation request: Why is something 'dangerous'? |
Date: | Wed, 23 Oct 2013 09:58:12 -0700 |
To: | bug-MIME-Lite [...] rt.cpan.org |
From: | "P Fudd" <fink [...] ch.pkts.ca> |
Hello!
I like using MIME::Lite; it gets the job done quickly and easily.
Recently, I attempted to set the content-type.charset from the attach()
function:
$body->attach(
Type => 'text/html',
Data => slurp($INFILE),
'content-type.charset' => 'UTF-8'
);
However, it gives a warning message:
"Explicitly setting a MIME header field (content-type.charset) is dangerous:
use the attr() method instead."
I've googled hard, but I cannot understand why this is dangerous. Could
you update the documentation to explain this?
In addition, I don't actually see a way to set the content-type.charset of
an HTML attachment; how are you supposed to do that?
Thanks!