[REq] Send email HTML

xenoth

New Member
Ok here is the mod you want, please remember to click the thanks button for the first time :p :)

Step 1:
In admincp/email.php find:

Code:
print_textarea_row($vbphrase['message_email'], 'message', '', 10, 50);
Directly below it place:
Code:
print_yes_no_row('Send HTML Email?', 'sendhtml', 0);
Step 2:
In admincp/email.php find:

Code:
construct_hidden_code('test', $vbulletin->GPC['test']);
Directly below it place:

Code:
construct_hidden_code('sendhtml', $_POST['sendhtml']);
Step 3:
In includes/class_mail.php find:
Code:
$headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
and replace with:

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;
}
 

ashutariyalr

New Member
hi, i have done these steps. and send a test mail.. but it is not delivered.. after that i have done reverse changes so that i can send normal mails but now my normal mails also not delivered.. plz help me..
 
Top