For FreeBSD, I had to change line 200:
mktemp -p .
to
mktemp MATTS
Because FreeBSD doesn't support the -p option...
Also, it would be nice use EDITOR for filling in headers and the message, I really like the way mutt does this for example:
Code:
From: Martin Tournoij <carpetsmoker@rwxrwxrwx.net>
To: test@example.com
Cc:
Bcc:
Subject: some subject
Reply-To:
A little message with text
... More text
... And even more ...
--
Vermaden, your script doesn't make MIME compliant messages. Entourage must do some magic/parsing on the message to sniff suspected attachments because all your script is sending is a bunch of good ol' MIME-less RFC822 plain text.