If you would like to send out your Community Bulletin in a HTML format make these modifications to the commbull.php file.
(I hope that I am not stepping on the toes of the author who created this GREAT hack.)
Based on
Community Bulletin Generator Version 0.98
Find:
PHP Code:
$message = str_replace("\\'","'",$message);
Right After Add:
PHP Code:
$message = str_replace("\r\n","\n<br>",$message);
----------------------------------
Find:
PHP Code:
while ($user = $DB_site->fetch_array($users)) {
$username = $user[username];
$password = $user[password];
$posts = number_format($user[posts]);
$joindate = date($dateformat,$user[joindate]);
$lastactivity = date("$timeformat, $dateformat",$user[lastactivity]);
eval ("\$mailbody = \"".$message."\";");
echo "<li>".htmlspecialchars($username)." (<i>$user[email]</i>) .... ";
mail($user[email],$subject,$mailbody,"From: \"$bbtitle Mailer\" <$webmasteremail>");
echo "ok</li>\n";
//flush();
}
Replace With:
PHP Code:
// Allow HTML in Community Bulletin - Start
while ($user = $DB_site->fetch_array($users)) {
$username = $user[username];
$password = $user[password];
$posts = number_format($user[posts]);
$joindate = date($dateformat,$user[joindate]);
$lastactivity = date("$timeformat, $dateformat",$user[lastactivity]);
eval ("\$mailbody = \"".$message."\";");
echo "<li>".htmlspecialchars($username)." (<i>$user[email]</i>) .... ";
$camEmailHeader = "From: \"$bbtitle Mailer\" <$webmasteremail>\n";
$camEmailHeader .= "Content-Type: text/html\n";
mail($user[email],$subject,$mailbody,$camEmailHeader);
echo "ok</li>\n";
//flush();
}
// Allow HTML - End
--------------------------------------------
You will need to insert HTML into the commbull.php file. You can also add HTML into the preview page. If you make these modifications be aware that the current hyper-links will no longer work unless you add the appropriate HTML tags.