Jump to:

5521 Posts in 1734 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » email send problem :silverstripe 2.3.1

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

Page: 1
Go to End
Author Topic: 806 Views
  • amarbhanu
    Avatar
    Community Member
    57 Posts

    email send problem :silverstripe 2.3.1 Link to this post

    please help me when write this code :

    $email = new Email_Template();
    $email->ss_template = 'ContactUsEmail';
    $email->populateTemplate($fields);
    $email->subject = 'Subject';
    $email->from = 'blah@blah.com';
    $email->to = 'blah@blah.com';
    $email->send();

    then error msg:
    [Notice] Undefined variable: fields

    please suggest me where declear $fields code, or if wrong code then suggest or send link for help me.........

    806 Views
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.