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

"forgot password" does not send email


Go to End


5 Posts   6024 Views

Avatar
xli

Community Member, 2 Posts

10 January 2010 at 5:23am


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

Avatar
theAlien

Community Member, 131 Posts

10 January 2010 at 8:38am

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.

Avatar
DsX

Community Member, 178 Posts

21 February 2010 at 6:06am

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.

Avatar
ChrisBryer

Community Member, 95 Posts

23 February 2010 at 5:50am

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

Avatar
DsX

Community Member, 178 Posts

30 April 2010 at 4:45am

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