Hi All,

I'm trying to send out daily emails to salespeople with an attached
CSV file containing all their leads.

Currently they can click on a link to download the CSV, but I'd like
to email it daily.

The manual is very light on information regarding attachments.

I've tried using
$this->Email->attachments = array('/leads/export_csv/leads.csv?
consultant_id='.$consultant['Consultant']['id']);

But I get an error
Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/
controller/components/email.php, line 516]


Has anyone done this before?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to