Hey @Teodor,
I found what the problem is, but I’m not sure where it’s coming from. The link that is generated inserts a %0D half way through my link, that messes up with the update_password server action file. When I remove this %0D from the link and reload, then the password updates as required. I know that this is a CR symbol. Is this a bug in the hyperlink function in the mailer? You can see my mail generator and the generated link with %0D below. Any ideas as to why this %0D is creeping in at that point? One thing that may or may not help is that it always seems to get inserted after the same number of characters in the link, ie. If I swap email variable to be in front of the id variable in the URL then it is the email variable that gets interfered with.
/password_reset.php?id=ed5b251f608%0Da109e500130de669e1c4bbf217bde&email=xxx@gmail.com
EDIT:
So if I don’t use the hyperlink function to mask the link with an underlined word, then the link is generated and emailed correctly. Also, if I just change the email type from html to text, then the correct link is generated.
There must be some quirk or bug in the hyperlink functionality or else maybe a line limit in the html encoder for the mailer, or else I’m doing something funny with it.