[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there some way to send attachments by scripts



Edilmar wrote:

Hi,

I have Netqmail1.05 and I'd like to create a script to send attachments.
I now how to use qmail-inject to send normal text mails, but I didn't
find how to send files attached. Is there some way with qmail-inject or
sendmail(by qmail)?

Here's my two cents. I do it in one line like this:


(echo "Message body text goes here"; cat file1 | uuencode file1; \
cat file2 | uuencode file2; cat file3 | uuencode file3) \
| mail -s "email subject goes here" recipient@xxxxxxxxxxx