Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Email ParseVariables 2.4

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

Page: 1
Go to End
Author Topic: 564 Views
  • Gene
    Community Member
    41 Posts

    Email ParseVariables 2.4 Link to this post

    Why was this removed from the ParseVariables method in the Email class for 2.4...

    foreach(array('from','to','subject','body', 'plaintext_body', 'cc', 'bcc') as $param) {
       $template = SSViewer::fromString($this->$param);
       $this->$param = $template->process($data);

    It was handy being able to have dynamic variables in the subject line, etc.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.