Jump to:

23575 Posts in 19402 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » admin_email

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 299 Views
  • blueace
    Community Member
    3 Posts

    admin_email Link to this post

    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: '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.

  • swaiba
    Forum Moderator
    1796 Posts

    Re: admin_email Link to this post

    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.

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.