Davie33 Posted February 25, 2015 Share Posted February 25, 2015 (edited) Hi all am having a small problem,When i change my password and i get email in emil the url is wrong as i would like to return back to forgotpassword.html How would i do this ?. This is the email that you would receive $setting['siteurl'] prints out the main domain name. $body = " You are receiving this e-mail because a request was made to reset your password If you did not make this request, you can ignore this e-mail. Click this link to reset your password. ".$setting['siteurl']."forgotpassword.php?code=$code&username=$username "; Edited February 25, 2015 by Davie33 Quote Link to comment Share on other sites More sharing options...
tryingtolearn Posted February 25, 2015 Share Posted February 25, 2015 Depending on what you mean by wrong One possibility - you say you want it to go to forgotpassword.html but you are pointing to forgotpassword.php Assuming thats a typo above Another possibility might be you re missing a / after $setting['siteurl'] if you are getting a url like this in your email www.YOURMAINDOMAIN.comforgotpassword.php?code=1234&username=name Try ".$setting['siteurl']."/forgotpassword.php?code=$code&username=$username Quote Link to comment Share on other sites More sharing options...
Davie33 Posted February 25, 2015 Author Share Posted February 25, 2015 Hi thanks for the reply. $setting['siteurl'] will print out the url with anding slash so no need to worry about that. I would like the email to let us return back to say www.games-flash.co.uk/forgotpassword.html But the part i need added to it is this code=$code&username=$username Would it be ok to send full code by pm ? its only two files and they are not big files. Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted February 25, 2015 Share Posted February 25, 2015 (edited) ...i get email in emil the url is wrong... Could you clarify by what you mean by "the url is wrong"? It looks like you're on the right track...assuming that the variables contain what you expect. Would it be ok to send full code by pm ? its only two files and they are not big files. Note that this is against the forum rules. Users are not allowed to contact members or staff members with the intention of receiving help with subjects covered in any boards. You could try pasting the code for those interested in looking. Edited February 25, 2015 by cyberRobot Quote Link to comment Share on other sites More sharing options...
Davie33 Posted March 1, 2015 Author Share Posted March 1, 2015 Its ok guys thanks anyway and sorry about asking for pm help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.