advanced user verification


With this simple tutorial instead of sendind a simple email verification, u can send an advanced on with all the things you want..

Find on register.php this code:
PHP Code
  1. mail("$email", "Member-Ship Validation", "Thank you for registering on $sitename.
  2. Please copy the below link into you address bar,
  3.  
  4. $link", "From: Site Verification");


and replace it with this:
PHP Code
  1. // multiple recipients
  2. $to = '$email' . ', '; // note the comma
  3.  
  4. // subject
  5. $subject = 'User Confirmation';
  6.  
  7. // message
  8. $message = "
  9. <html>
  10. <head>
  11. <title>Confirm</title>
  12. </head>
  13. <body>
  14. Thanks for registering on $sitename!<br>
  15. Active your User going on this link:!<br>
  16. $link<br>
  17. </body>
  18. </html>
  19. ";
  20.  
  21. // To send HTML mail, the Content-type header must be set
  22. $headers = 'MIME-Version: 1.0' . "\r\n";
  23. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  24.  
  25. // Additional headers
  26. $headers .= 'To: $email' . "\r\n";
  27. $headers .= 'From: youremail' . "\r\n";
  28.  
  29. // Mail it
  30. mail($to, $subject, $message, $headers);

you can modify the html to be siutable for your user system
gbt91's Avatar
Author:
Views:
2,528
Rating:
Posted on Monday 18th August 2008 at 02:06 PM
jambomb
jambomb's Avatar
lol my Diablosblizz your post up there is on my bday :P hehe
Posted on Monday 7th May 2007 at 10:10 PM
Diablosblizz
Diablosblizz's Avatar
Who said you where. I got stuck, because I didn't know if I could add HTML.
Posted on Sunday 6th May 2007 at 01:29 PM
cyruswu
cyruswu's Avatar
Umm, i'm not that dumb. I have used this before myself.