On Tue, 23 Mar 2010 13:29:27 +0100, Matthias Apitz <g...@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.

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to