Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 14:13:42 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sendmail && UTF-8
Message-ID:  <87mxxxudc9.fsf@kobe.laptop>
In-Reply-To: <20100323122927.GA4059@current.Sisis.de> (Matthias Apitz's message of "Tue, 23 Mar 2010 13:29:27 %2B0100")
References:  <20100323122927.GA4059@current.Sisis.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 23 Mar 2010 13:29:27 +0100, Matthias Apitz <guru@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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87mxxxudc9.fsf>