Activate wpmu user while email server not working

My email server seem not working to send activation email to student for their new blog . I need quick solution that able to activate the blog and able to reset the password for temporary solution so I can investigate problem in my email server.

To overcome the problem I make this script :

activate.php

[sourcecode language=’php’]
mysql_connect(“localhost”,”alam”,”doyanmakan”);
mysql_select_db(“wpmu”);

if($_GET[‘ac’]==’reset’){

$user2=base64_decode($_GET[‘us’]);

//update db
$ubah=mysql_query(“update wp_users set user_pass=md5(‘123456’) where user_login=’$user2′”);

if($ubah){

echo “Success reset the password into : 123456“;

}

}

?>




Instant Blog Activation

Instant Blog Activation

No Name Blog Email Action
“>Reset Password


[/sourcecode]

I hope I can fix email server as fast as I can 🙂