Jump to content

Click on link from email


Davie33

Recommended Posts

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 by Davie33
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

...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 by cyberRobot
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.