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, Ed, biapar, Willr, Ingo, swaiba


Go to End

2 Posts   841 Views


Community Member, 3 Posts

16 December 2013 at 3:32pm

Edited: 16/12/2013 3:33pm

Hi there,

[Silverstripe 3.1.2]

When you procede to a password recovery, in "framework/security/member.php" it says

$from = '';  // setting a blank from address uses the site's default administrator email


Then in "framework/mail/Email.php" it says

if(empty($this->from)) $this->from = Email::config()->admin_email;


But admin_email is NOT defined in database "siteconfig".

After some research, I found you have to had MANUALY in "mysite/_config/config.yml" something like that :

  admin_email: ''

Don't you think that it should be automatic ?

By the way, in "framework/security/Security.php" LOSTPASSWORDHEADER is hardcoded. Whatever the language you use, it will always display the english text hardcoded in this file.


Forum Moderator, 1899 Posts

17 December 2013 at 6:23am

Hi blueace,

As stated on another post the github repo is where to raise issue - or maybe the dev list - but probably not for most.

For the record I don't think this is a good idea as I'd prefer the from is blank unless I set it.