How To? - Email CSV Via Crontab - Help Me Please

On the 10th of every month, I want to email an address a CSV that goes back 45 days on two feeds.

Can I setup a graph, and run bla.php > email.csv and script it all to email?

Any ideas? I saw the email reports plugin, but I do not need a report. I need raw data.

Have you tried just piping stdout i.e. run bla.php | mail -s ‘Here you are’ [email protected] ?

You can use the Feed API to get the data (details top right of Feeds page)


Probably a bit of python would do it.