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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1761 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.