These are a set of simple perl scripts which can act as a mail2fax gateways in
combination with your favour MTA.
Simply get your MTA to invoke this program:
cat message | /path/to/mail2fax.pl <number>
Or
cat message | /path/to/faxmail.pl <number>
mail2fax.pl is a very simple "template" to start from if you need custom
handling of different attachments and mime-types.
faxmail.pl is a more featurefull mailer, which handles more (including any I18N
text parts, including headers). To use this, you'll need text handling rules in your typerules
file that handle UTF-8 text files. I use this as the first line of my typerules file:
# Handle "Email" text specifically
0 string From: ps iconv -f UTF-8 -t ISO-8859-15 %i | \
a2ps -X ISO-8859-15 -R -PLetter --header=" " --footer= --left-footer= --right-footer= -=mail -1 -g -o %o
Unfortunately, I haven't found any good text => postscript converters that
handle UTF-8 natively, thus my use of iconv to push the UTF-8 text through a2ps
(which understands latin charactersets, but not unicode).