![]() |
Send HTML email via adminCP
*** This is the same hack in the 3.5.x and 3.6.x sections, just thought I'd add it here too to keep continuity and to allow easier searching should someone need this functionality ***
Well, this was asked for by many people (me included :) ) without ever being done so things are never done for those who want but not prepared to do for themselves! Thus, a hack is borne! This hack does what it says on the label. Having come from IPB to vB, I was surprised to see that a default "Send HTML email" from the adminCP was lacking as I used it in my IPB board for newsletters and such. This hack adds the ability to use the default email template that sends plaintext emails or, but toggling the radiobutton, will send HTML mime emails. Unfortanatly, I am not familiar enough with vB's hooks/plugins so it is done with 2 file edits but I'm sure that it could be done with a plugin if someone ever feels the need... Step 1: In admincp/email.php find: Code:
print_textarea_row($vbphrase['message_email'], 'message', '', 10, 50); Code:
print_yes_no_row('Send HTML Email?', 'sendhtml', 0); In admincp/email.php find: Code:
construct_hidden_code('test', $vbulletin->GPC['test']); Code:
construct_hidden_code('sendhtml', $_POST['sendhtml']); In includes/class_mail.php find: Code:
$headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter; Code:
if($_POST['sendhtml']) { (you may modify this hack at will... No permission needs to be granted) **Tested and works for vB versions 3.5.0 to present (3.7)** |
it works perfect !! :up: although the file edits are minor but still it would be amazing if such feature comes as a plugin with a WYSIWYG editor interface and option for storing newsletters in database and even display them on a separate page for public viewing.
I wonder, why vB doesn't has it ?? |
There are things like Commbull (is this still being developed?) and GAZ for very robust newsletter handling...
What this does is literally for those of us who just need to send HTML via the adminCP. But, I do agree that with the size of some vB communities and the knowledge that most sites send out a newsletter of some description that there hasn't been some sort of addon to facilitate this from vB. Seems like missed market share as anyone who desperately needs a newsletter solution has to spend several hundred dollars to use Sendstudio or Oempro. Oh well, in the mean time, I'm here! ;) |
Any chance of this using no file edits in the future?
|
Quote:
Quote:
|
tagged ...
|
thanks
|
Thanks a lot :)
|
Quote:
great feature stock or aftermarket. well needed. *installed* |
on evry VB update I have to do this edits agan :(
|
nice :)
thanks for this, m8 :) |
Wonderful! Thanx for the share ;)
Jacquii. |
cool mod, thank you for this mod.
|
vert very thanks friends bravooo
|
thanks
|
THANK YOU - i works great!!! I hope vBulletin will include it in their Software.. soon!
|
I use this one, much easier https://vborg.vbsupport.ru/showthrea...o+email&page=2
|
thanks!
|
any one test it with 3.7
|
thanks... each time I upgrade my board I have to install this one.
|
Works perfectly. Thanks :up:
|
nice
|
the best!
|
some feedback for 3.8 ? Is it working ?
eric |
Still works fine on 3.8.2 :)
|
I installed this mod in 2 minutes and it runs perfekt.
thanks a lot :) 3.8.2 i use |
WoW Really SuperB Dude...Works Perfectly On 3.8.3
|
Hi
I have modified the code as per instructions. It throws "parse error: in email.php" when I open "Send Mail to users" in ACP. Checked the code twice but no use. BTW, it is 3.8.4. Appreciate your suggestions. Thanks. |
thanks.
|
Working well o 4.1.4
This is great stuff and i used it in all versions since it came out and allways good |
no, it doesnt work on VB4, i have the flag for HTML but i dont have the message box, only the object box.
|
does this work on 3.8.7 ?
|
All times are GMT. The time now is 02:09 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|