
02-17-2014, 10:59 AM
|
|
|
Join Date: Apr 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Nonowmana
for version 4.2
First step:
In admincp/email.php Find:
PHP Code:
print_textarea_row($vbphrase['message_email'], 'message', '', 10, 50);
add just below
PHP Code:
print_yes_no_row('Send HTML Email?', 'sendhtml', 0);
Find:
PHP Code:
construct_hidden_code('test', $vbulletin->GPC['test']);
add just below
PHP Code:
construct_hidden_code('sendhtml', $_POST['sendhtml']);
step 2
in includes/class_mail.php Find:
PHP Code:
$headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
replaced by:
PHP Code:
if($_POST['sendhtml']) {
$headers .= 'Content-Type: text/html' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
}else{
$headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
}
source: http://www.vbulletin-ressources.com/...032#post141032
|
Hi, thanks for this - will test it shortly.....
|