Back to vBulletin 3.0 Add-Ons

Send HTML email via admincp
Mod Version: 1.00, by Dean C

This modification is in the archives.
vB Version: 3.0.3 Rating: (1 vote - 5.00 average) Installs: 114
Released: 23 Nov 2004 Last Update: Never Downloads: 7
Not Supported  

[Send HTML email via admincp]

Information
  • vBulletin Version: 3.0.3

  • Author: http://www.deanclatworthy.com

  • Copyright: You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.

  • Donations: I release my modifications for free. If you wish to donate please contact me via PM and I will give you my details. All donations are graciously appreciated.

  • Credits: I would like to thank the following people who contributed to the making of this modification.
    • Breaker - for bugging me on IRC how to do it.

What does this modification do?
This modification allows you to send optional HTML email in your newsletter when mass emailing users from your AdminCP

Installation

1/

In admincp/email.php find:

PHP Code:
vbmail($user['email'], $_POST['subject'], $sendmessagetrue$_POST['from']); 
Replace it with:
PHP Code:
if($_POST['sendhtml'])
{
        
vbmail($user['email'], $_POST['subject'], $sendmessagetrue$_POST['from'], ''''true);
}
else
{
        
vbmail($user['email'], $_POST['subject'], $sendmessagetrue$_POST['from']);

2/

In admincp/email.php find:

PHP Code:
print_textarea_row($vbphrase['message_email'], 'message'''1050); 
Directly below it place:
PHP Code:
print_yes_no_row('Send HTML Email?''sendhtml'0); 
3/

In admincp/email.php find:

PHP Code:
construct_hidden_code('test'$_POST['test']); 
Directly below it place:
PHP Code:
construct_hidden_code('sendhtml'$_POST['sendhtml']); 
4/

In includes/functions.php find:

PHP Code:
function vbmail($toemail$subject$message$notsubscription false$from '' $uheaders ''$username ''
Replace it with:
PHP Code:
function vbmail($toemail$subject$message$notsubscription false$from '' $uheaders ''$username ''$html false
5/

In includes/functions.php find:

PHP Code:
$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter
Replace it with:
PHP Code:
$usehtml iif($html'html''plain');
$headers .= 'Content-Type: text/' $usehtml iif($encoding"; charset=\"$encoding\"") . $delimiter
Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Download

No files for download.

Screenshots

 

Similar Mods

Add-On Releases Send HTML emails from adminCP vBulletin 3.6 Add-ons
Administrative and Maintenance Tools Send HTML email via adminCP vBulletin 3.7 Add-ons
Send HTML emails from adminCP vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024