PHP Code: $receiver = isset($_POST[”receiver”]) ? $_POST[”receiver”] : false; $res = mysqli_query($GLOBALS[”___mysqli_ston”], “SELECT acceptpms, email, notifs, last_access as la FROM users WHERE id=$receiver”) or sqlerr(__FILE__, __LINE__); $user = mysqli_fetch_assoc($res); if (strpos($user[’notifs’], ‘[pm]’) !== false){ $username = $CURUSER[”username”]; $body = <<<EOD You have received a PM from $username! You can use the URL below to view the message (you may have to login). {$url/messages.php — {[’site_name’]} EOD; @mail($user[”email”], “{$lang[’message_received’]} ” . $username . “!”, $body, “{$lang[’message_from’]} {[’site_email’]}”); }  so I have the code above that will allow […] Original post by pwpx2