procmail
[Top] [All Lists]

Adding an attachment to an email

2001-07-23 15:58:42
I would like to send an attachment with an email I'm generating in response
to certain received messages.  I'm using Procmail to send the email (hence
my reasoning behind posting to this list), but I don't know how to do this.
It's a Word Document, so I can't just cat it into the body of the message.
Here's what it looks like so far:

:0c
| ( formail -rt -I "Subject: Custom Subject" \
-I "To: $MATCH" \
-I "From: myemail(_at_)foo(_dot_)bar" ;\
echo "My own body text here" ; \
cat $AUTOREPLY/moretext.txt ) | $SENDMAIL -t

(The MATCH variable is from earlier in the script, and has the email address
of the person I'm sending this message to)
Ideas, anyone?

     --Michael--

P.S.  I recently sent the "Auto-send (NOT reply/forward) an email with
procmail" email, and the responses I received helped me fix the problems I
was having.  So thanx Andrew Edelstein and Sean B. Straw!!


========= Michael McKelvey ============
Office for Mathematics, Science, and Technology
MSTE TechTeam live mIRC chat (daytime):
 http://www.mste.uiuc.edu/techteam/chat.html
MSNMessenger: mstecontact(_at_)hotmail(_dot_)com
========= mmckelve(_at_)uiuc(_dot_)edu ===========


_______________________________________________
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>