View more context

 

LiamC

Morning all , If I am getting a datalist and storing it into an array for email - I thought that <% loop Entries %> would work in the email SS template but it doesnt

LiamC
  1. $Entries = Entries::get()->filter(array('CustomEntryRecordID' => $EntryRecordID));
  2. $data["Entries"] = $Entries;
LiamC
  1. $email = new Email($From, $To, $Subject);
  2. $email->setHTMLTemplate('Email\Thankyou');
  3. $email->setData($data);
  4. $email->send();
MichalKleiner

just to be sure, do you mean <% loop $Entries %> with a dollar sign… not without it

LiamC

you can do it with or without the sign I believe ?

LiamC

it just doesnt loop the entries , very strange