Quantcast Code edits to send HTML email via admincp in vBulletin - digitalFAQ Forum
  #1  
03-06-2011, 08:14 PM
admin's Avatar
admin admin is offline
Site Staff | Web Development
 
Join Date: Jul 2003
Posts: 4,368
Thanked 586 Times in 438 Posts
This works on vBulletin 3.7.x and 3.8.x

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

- Did this site help you? Then upgrade to Premium Member and show your support!
- Also: Like Us on Facebook for special DVD/Blu-ray news and deals!
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Add HTML option to vBulletin 3.x "Send Email to Users" admincp admin Website and Server Troubleshooting 0 04-28-2010 08:29 AM
HTML login code like vBulletin for a website ? JonathanEntertainment Website and Server Troubleshooting 3 01-21-2010 07:11 PM
E-mail newsletter HTML templates [NOTES] admin Web Design + Site Planning 0 08-11-2009 12:44 AM
VBulletin web streaming admin Website and Server Troubleshooting 3 04-25-2009 11:00 PM
DVD Regional Code Dewey Copy DVDs, Duplicate, Replicate 1 03-11-2006 03:52 PM

Thread Tools



 
All times are GMT -5. The time now is 07:31 PM