Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

populateTemplate doesn't correct with SS 2.3 version


2 Posts   761 Views


28 May 2009 at 8:00pm Community Member, 192 Posts

I create forms to sent mail. I use Email_Template() to send mail.
Mail arrive to destination but is empty. I don't see data in fomr and subject.
With last version 2.2 nothig problem Why?

function doSendMail($data, $form)
      $e = new Email_Template();
      $e->From = "";
      $e->To = "";
      $e->Subject = "Hi there";
      $e->Body = "I just really wanted to email you and say hi.";*/


29 January 2010 at 1:43am Forum Moderator, 435 Posts

I think that populate data goes before send..