$message = "Reporting Post: [url=viewthread.php?$session[sessionurl]g=$g&#post$p]Post ID #$p[/url]\n\nReason: htmlspecialchars($reason)";
$message = "Reporting Post: <a href=\"viewthread.php?$session[sessionurl]g=$g&#post$p\">Post ID #$p</a>\n\nReason: htmlspecialchars($reason)";