[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Email to Web
- Subject: Re: [cobalt-users] Email to Web
- From: "Jens Kristian Søgaard" <jens@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon Jul 10 17:11:17 2000
> I would like to find a way to simplify the FTP process allowing anyone
to
> send an email to a specified address with an .html attachment and seen
it
> published to the web.
Create a user "ftpuser" - and setup a .procmailrc in his home-directory
like this:
:0
| /home/sites/siteXX/users/ftpuser/ftpscript.pl
Then make a Perl file called ftpscript.pl that reads the email from
STDIN. Give that information to the MIME module (there is a simple
one) - and whoop you'll have the attachment. Store that attachement in a
simple file...
--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx