MailBox & Encodings
JUANMARCOSMOREN <[email protected]> Fri, 13 Aug 2004 23:45:13 GMT
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
I want to build a message correctly encoded.
my $msg = Mail::Message->build
( From => $from
, To => $to
, Subject => $subject
...
If any of the above headers have characters outside us-ascii, how should
them be encoded?
Example:
If I have:
Presentación
That should be encoded as:
Subject: =?iso-8859-1?Q?Presentaci=F3n?=
How do I get that?
I'd also like an example on how to create a full message if I have the
body text encoded in iso-8859-1
I also have the date in converted with mktime() how do I encode it
easily with Mail::Message ?