Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Lost Password form not sending password reset email

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

Page: 1
Go to End
Author Topic: 3438 Views
  • Ben_W
    Avatar
    Community Member
    80 Posts

    Lost Password form not sending password reset email Link to this post

    On my dev server, after I fill in my email address in the 'Lost Password' form, SilverStripe will send a email containing the password reset link to the email address I just filled in. The 'From' address of this email is the default server admin email address. However on my staging server, this password reset email does not get sent, I am guessing it is because I did not set a server admin email address(?). Is there a way to set the server admin email address in the _config.php, or the ability to change this default email address.

    I had a look at Member.php, its Member_ForgotPasswordEmail class has the following comments for '$from' address, //setting a blank from address uses the site's default administrator email. Is there a way to set a email address for this?

    Thank you for taking the time to read this!

  • Ben_W
    Avatar
    Community Member
    80 Posts

    Re: Lost Password form not sending password reset email Link to this post

    I have put the following line in the _config.php, the password reset email worked on staging site.

    Email::setAdminEmail('admin@yourdomain.com');

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Lost Password form not sending password reset email Link to this post

    This is probably because of your SMTP handler configuration, rather than anything in SilverStripe.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: Lost Password form not sending password reset email Link to this post

    I am just launching my first SS site, and have found that the system isn't sending email (notably the lost password message).
    Can you point me toward information on any settings that I need to add to config (or anywhere else) to get this working?

    this and trying to force the login to be under https are my only remaining issues.

    Everything else in my site is working beautifully ;) I am really looking forward to the new version and getting into my next (much larger) site.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: Lost Password form not sending password reset email Link to this post

    The email setting above fixed my problem. Thanks.

  • spierala
    Avatar
    Community Member
    80 Posts

    Re: Lost Password form not sending password reset email Link to this post

    Hello,
    same problem here:

    putting this in config did not work:
    Email::setAdminEmail('admin@mydomain.de');

    How can I debug that?

    Kind regards,
    Florian

    3438 Views
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.