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

autoresponder to send MIME attached file?



I am sure someone has cooked this up already.  I run a Debian 
system and want to be able to cook up a program that will send a 
file to someone as a MIME attachment picking up the "reply-to" 
address from the incoming mail.  

I have done something similar in Perl, invoking sendmail, to send 
simple messages to people who send "subscribe" messages and 
the like to old list addressess on my server.  What I want is to be 
able, fairly easily, to put a new alias in my sendmail aliases so that 
a particular file (probably a Word file I'm afraid) will be sent to 
someone automatically.  It would be grand if the same program 
could be used each time with two arguments, one a file for the text 
message (and subject line) and the other the filename for various 
different files so all I had to do each time I wanted to send a new 
file was to add the appropriate line to my aliases file.  

Has anyone already rolled something like this that I could 
legitimately use?

TIA,


Chris
Chris Evans <chris@visped.org or chris@psyctc.org>
Consultant Psychiatrist in Psychotherapy,
Rampton Hospital and Associate R&D Director,
Tavistock & Portman NHS Trust
*** My views are my own and not representative 
of either institution ***


Reply to: