Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 112
0 Users 5 Guests Online

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
2
3
4
5
mail("$email", "Member-Ship Validation", "Thank you for registering on $sitename.
Please copy the below link into you address bar,

$link", "From: Site Verification");


and replace it with this:
PHP Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// multiple recipients
$to  = '$email' . ', '; // note the comma

// subject
$subject = 'User Confirmation';

// message
$message = "
<html>
<head>
  <title>Confirm</title>
</head>
<body>
Thanks for registering on $sitename!<br>
Active your User going on this link:!<br>
$link<br>
</body>
</html>
";

// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: $email' . "\r\n";
$headers .= 'From: youremail' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);

you can modify the html to be siutable for your user system
gbt91
Author:
Views:
2297
Rating:
Posted on Monday 18th August 2008 at 02:06 PM
jambomb
jambomb
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
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
Umm, i'm not that dumb. I have used this before myself.