Friedrich Remmert wrote:
> Is it possible to give sendmail an inputstream with a properly formed mail
> body? I mean:
Yes, absolutely.
> sendmail -s Subject anyone@anydomain < MIME-Version: 1.0
> Content-Type: text/html; charset=iso5988-1
> Content-Transfer-Encoding: 7bit
> From: sender@mydomain
> EMPTY-LINE
> ...Message in HTML...
> END-OF-INPUTSTREAM
Well, the syntax is a bit off... you want:
sendmail -oi -- any...@anydomain.com <<'EOF'
Subject: Here is some annoying HTML mail
To: <any...@anydomain.com>
From: <some...@somewhere.com>
MIME-Version: 1.0
Content-Type: text/html; charset=iso8859-1
Content-Transfer-Encoding: 7bit
<html>
<head><title>Annoying HTML</title></head>
<body>Isn't it <em>annoying?</em></body>
</html>
EOF
-- David.