Jump to content
Larry Ullman's Book Forums

Ch 18 Page 582 Send Email For Activation - Only Includes Base Url


Recommended Posts

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

 Share

×
×
  • Create New...