procmail
[Top] [All Lists]

Sending an html file in a procmail recipe

2003-01-12 06:09:33
I know I'm missing something stupid, but i and trying to send a html file as part of a procmail recipe (yes, I know, I know, HTML email is evil, still... that's what I need to do):

:0c
| (formail -r -A "Precedence: bulk" -A "X-Loop: kremels.loop" ; \
    echo "" ; cat $HOME/thefile.txt) | $SENDMAIL -t


All I get, of course, is the bare html in a text file.

Fine, I can add the Content-type header, but is there anyway that I can setup thefile.txt itself to contain everything it needs? I tried adding a

Content-Type: multipart/alternative

Content-type: text/html; charset=us-ascii
Content-transfer-encoding: 7BIT


as the first lines of thefile.txt, but it appears, of course, as the first lines of the body.

I would like thefile.txt to be self contained, so it was sent as a valid HTML message regardless of whether it was procmail or simply:

mail -s "thefile" user(_at_)domain(_dot_)tld < thefile.txt



--
Why live in the world when you can live in your head?


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>