sendmail && UTF-8
Giorgos Keramidas
keramida at ceid.upatras.gr
Wed Mar 24 12:14:02 UTC 2010
On Tue, 23 Mar 2010 13:29:27 +0100, Matthias Apitz <guru at unixarea.de> wrote:
> Hello,
>
> I want to sendout mail the following way:
>
> sendmail -t < filename
>
> where the file 'filename' contains some header lines, especially To:
> Subject: and From: and as well the body of the mail; all is in UTF-8
> and I know I have to encode the header lines and says something about
> the body. With Perl it goes like this:
>
> #!/usr/bin/perl
>
> use utf8;
> use Encode;
Since you are using perl, it may be more useful to start from something
like mail/p5-MIME-Lite instead of rolling your own.
More information about the freebsd-questions
mailing list