View Full Version : Enable HTML for mass mail
Snake
10-23-2006, 02:00 AM
I'm looking for a hack that I would be able to use HTML format while sending mass email to all the members on my board. Is there any way I could do this?
Please help!
Snake
10-24-2006, 08:28 AM
*bump*
Please anyone?
engager
10-24-2006, 08:45 AM
Here you go:
Step 1:In admincp/email.php find:
print_textarea_row($vbphrase['message_email'], 'message', '', 10, 50);
Directly below it place:
print_yes_no_row('Send HTML Email?', 'sendhtml', 0);
Step 2:
In admincp/email.php find:
construct_hidden_code('test', $vbulletin->GPC['test']);
Directly below it place:
construct_hidden_code('sendhtml', $_POST['sendhtml']);
Step 3:
In includes/class_mail.php find:
$headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;and replace with:
if($_POST['sendhtml']) {
$headers .= 'Content-Type: text/html' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
}else{
$headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
}
(you may modify this hack at will... No permission needs to be granted)
CREDIT goes to: tokenyank
Snake
10-26-2006, 09:31 AM
Thank you very much, engager! :D Also do you mind if I submit this as a hack to the mod database section?
Thanks once again.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.