2071 Posts in 814 Topics by 448 members
|Go to End|
15 July 2010 at 12:08am
Hi I am using SS2.3.2 and rc4 and ecommerce 0.6 beta. I want the system to email any new user that signs up/ is registered their username and password to the email address that they specified.
As far as i can tell from the documentation i have to extend the Member class and the write a onBeforeWrite() function that tells silverstripe to send an email to the new member, but i am not sure where to begin.
Some help please
15 July 2010 at 11:07am
Hi Optic Blaze,
The Ecommerce module decorates the member class in the ecommerce/_config.php
You'll find the file in ecommerce/code/model/EcommerceRole.php
Around line 107 you'll see the code for making a new memeber. Something along the lines of
$email = new Email($from, $to, $subject, $body);
Will send mail. But you'll need to sus out what you want to send.
15 July 2010 at 11:14pm
Thanks your a star
|Go to Top|