Jump to:

23478 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » "forgot password" does not send 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: 3201 Views
  • xli
    Avatar
    Community Member
    2 Posts

    "forgot password" does not send email Link to this post

    Click on "forgot password" link from login page. Then fill in valid email address. Click on "Send me the password reset link". Got "Thank you! The password reset link has been sent to xxx@xxx.com". However, the email is not received.

    I tried to create a test php page on the same web site. PHP mail() function is called from the php page. The email is received. That means the web server and PHP setup are OK.

    SilverStripe version: 2.2.3

    Any idea?

    Thanks in advance.
    ~xli

  • theAlien
    Avatar
    Community Member
    131 Posts

    Re: "forgot password" does not send email Link to this post

    It might have something to do with your spamfilter.
    My filter sent me this warning:

    Spam detection software, running on the system "your.server.com", has
    identified this incoming email as possible spam. The original message
    has been attached to this so you can view it (if it isn't spam) or label
    similar future email. If you have any questions, see
    the administrator of that system for details.

    Content preview: Hi test2, Here is your password reset
    link[http://localhost/xxxx/Security/changepassword?h=xxxanidentifierxxx]
    for http://localhost/xxxx/. Hi test2, [...]

    Content analysis details: (6.5 points, 5.0 required)

    pts rule name description
    ---- ---------------------- --------------------------------------------------
    0.0 MISSING_MID Missing Message-Id: header
    2.2 FH_FROMEML_NOTLD E-mail address doesn't have TLD (.com, etc.)
    0.0 HTML_MESSAGE BODY: HTML included in message
    1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
    2.5 DNS_FROM_RFC_DSN RBL: Envelope sender in dsn.rfc-ignorant.org

    The original message was not completely plain text, and may be unsafe to
    open with some email clients; in particular, it may contain a virus,
    or confirm that your address can receive spam. If you wish to view
    it, it may be safer to save it to a file and open it with an editor.

    Thankfully I could still open it. But it indeed is kind of annoying and might be a bug.
    You'd better file it as a bugreport at open.silverstripe.org.

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: "forgot password" does not send email Link to this post

    I just want to add that I have the same problem, and am not forced to set a default admin password to reset things.
    My email address is a gmail account, I checked the spam folder and nothing is there.. so I am not sure why it got lost.

  • ChrisBryer
    Avatar
    Community Member
    95 Posts

    Re: "forgot password" does not send email Link to this post

    I've hit the same problem before and it was because there was no 'from' email address. (resulting in spam filtering)

    adding this to mysite/_config.php file uses a default email address incase a 'from' email address is omitted:

    Email::setAdminEmail('info@domain.com');

    hope it helps,
    -Chris

  • DsX
    Avatar
    Community Member
    178 Posts

    Re: "forgot password" does not send email Link to this post

    That email setting fixed it for me... great thanks!

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