Is there such a thing as SMTP for FTP gateway?

PROBLEM: I need a way to automatically convert CSV email attachments to HTML using python, perl, ruby ​​or whatever. I usually get them and it's too tedious to do it manually.

QUESTION: Is there a service or trick I can use to forward email so that attachments are displayed on a file server, ready for scripting and conversion from CSV to HTML? Has anyone done this using cron, FTP, or any other known system?

+2


source to share


1 answer


In PHP I wrote a lot of cronjob to handle attachments based on this script: http://www.linuxscope.net/articles/mailAttachmentsPHP.html .

With it, I will log into an email account, extract all attachments and do whatever I need to. And for CSV, you can use many functions like fgetcsv () .



It is not python, pearl, nor ruby ​​(this is something else :)), so the answer to your question is: Yes, it is possible.

+2


source







All Articles