Hi

Does the attachments array not require a physical path to the file
e.g.



$this->Email->attachments = array('/var//files/' .$filename );

or another example

$consultant_id = $consultant['Consultant']['id'];


$this->Email->attachments = array('/var//files/consfile' .
$consultant_id . '.csv');

Whereas I am not sure of array('/leads/export_csv/leads.csv?
consultant_id='.$consultant['Consultant']['id']); is this a url?
or ....


Ciao
J


On Aug 6, 5:18 am, "m...@w8" <waite.m...@gmail.com> wrote:
> 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