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.

Template Questions

Password Reset Email


Reply

4 Posts   4745 Views

Avatar
Landmine

29 May 2009 at 10:12am Community Member, 11 Posts

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

10 June 2009 at 1:32pm Community Member, 712 Posts

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

10 June 2009 at 1:51pm (Last edited: 10 June 2009 2:08pm), Community Member, 11 Posts

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

10 June 2009 at 2:16pm Community Member, 11 Posts

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.