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.

Template Questions /

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

Password Reset Email


Go to End


4 Posts   10413 Views

Avatar
Landmine

Community Member, 11 Posts

29 May 2009 at 10:12am

So I cant send out password reset emails via SS because the plan text contains [ ] around the url, is there a way for me to modify SS to not include those square brackets?

Avatar
Hamish

Community Member, 712 Posts

10 June 2009 at 1:32pm

Hey there,

Password reset emails are generated from templates in the /templates/email/ folder. So, if you want your own template for the password reset email, create the file:

/themes/(mytheme)/templates/email/ForgotPasswordEmail.ss

eg:

<p>Hi $FirstName $Surname,</p>
<p>A password reset request has been recieved for your login at {$BaseHref}.</p>
<p>To reset your password, please follow this link: <a href="$PasswordResetLink">reset password</a>.</p>
<p>Thanks!</p>

Avatar
Landmine

Community Member, 11 Posts

10 June 2009 at 1:51pm

Edited: 10/06/2009 2:08pm

Thanks, however I'm still having issues.

The Emails are not being sent.

http://silverstripe.org/general-questions/show/261431

And looking at the SMTP logs the error is 554

Any more ideas to get rid of the [ ] that seem to automatically get added in?

------------------------ EMAIL MESSAGE ------------------
Hi Landmine,

A password reset request has been recieved for your login
at http://www.esfiles.com/.

To reset your password, please follow this link: reset
password[http://www.esfiles.com/Security/changepassword?h=5f3wohmk7gw8kcgsggw480k8g].

Avatar
Landmine

Community Member, 11 Posts

10 June 2009 at 2:16pm

http://www.webhostingtalk.com/showpost.php?s=12313a6b139652766e1cd7ddbcce3f97&p=5979602&postcount=14

Anyway, strangely enough, any attempt to telnet email through the relay server is refused. Maybe I did something wrong. I've provided the telnet session below. And again, just to be clear, any of my users can send any email except when it contains [] on its own line. And yes, godaddy has acknowledged this.