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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

admin_email


Go to End


2 Posts   880 Views

Avatar
blueace

Community Member, 5 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

Ok

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

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

Ok

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 :

Email:
  admin_email: 'webmaster@mysite.com'

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.

Avatar
swaiba

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.