Jump to:

3432 Posts in 1025 Topics by 865 members

Template Questions

SilverStripe Forums » Template Questions » Password Reset Email

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

Page: 1
Go to End
Author Topic: 4477 Views
  • Landmine
    Avatar
    Community Member
    11 Posts

    Password Reset Email Link to this post

    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?

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Password Reset Email Link to this post

    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>

  • Landmine
    Avatar
    Community Member
    11 Posts

    Re: Password Reset Email Link to this post

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

  • Landmine
    Avatar
    Community Member
    11 Posts

    Re: Password Reset Email Link to this post

    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.

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