beekeeper Posted September 5, 2012 Share Posted September 5, 2012 On page 582 number 10. Sending an email only sends the BASE URL...the activate.php is not part of the highlighted email address, so during activation activate.php and url encode never shown. Results link to BASE URL only...account is never activated. Link to comment Share on other sites More sharing options...
Edward Posted September 5, 2012 Share Posted September 5, 2012 This part of code you are referring to does also include the activate.php script (highlighted in red) concatenated in the $body variable, that of which would be received by your email. If you don't have the email setup via your localhost or host you can just print out the body string with an echo statement to get the exact activate.php string, which you can then copy and paste into your browser to activate the account. // Send the email: $body = "Thank you for registering at <whatever site>. To activate your account, please click on this link:\n\n"; $body .= BASE_URL . 'activate.php?x=' . urlencode($e) . "&y=$a"; mail($trimmed['email'], 'Registration Confirmation', $body, 'From: admin@sitename.com'); Link to comment Share on other sites More sharing options...
HartleySan Posted September 5, 2012 Share Posted September 5, 2012 Edward, your rapid switching of avatars cracks me up (but I do like this new one). Link to comment Share on other sites More sharing options...
Edward Posted September 5, 2012 Share Posted September 5, 2012 Thanks, every time i have an idea spring to mind i always put it up. That's the nice idea with having forum avatars they help to define the members image. Link to comment Share on other sites More sharing options...
Recommended Posts