Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Send HTML email via admincp Details »»
Send HTML email via admincp
Version: 1.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-22-2004 Last Update: Never Installs: 114
 
No support by the author.

[Send HTML email via admincp]

Information
  • [high]vBulletin Version:[/high] 3.0.3

  • [high]Author:[/high] Dean Clatworthy

  • [high]Copyright:[/high] 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.

  • [high]Donations:[/high] 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.

  • [high]Credits:[/high] 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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 04-11-2005, 06:27 PM
BradM BradM is offline
 
Join Date: Mar 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed and tested, I am not receiving HTML emails at all. The emails just never arrive?
Reply With Quote
  #73  
Old 04-11-2005, 09:10 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BradM
I installed and tested, I am not receiving HTML emails at all. The emails just never arrive?
Check your Junk Mail (or what ever it is called) folder. A lot of over active spam filters treat html mails as spam.
Reply With Quote
  #74  
Old 05-06-2005, 03:44 AM
htscpl's Avatar
htscpl htscpl is offline
 
Join Date: Sep 2003
Location: Houston
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed and tested, receive html email to myself! This is just what I've been looking for! Thanks !

** Clicks Install **
Reply With Quote
  #75  
Old 05-18-2005, 03:26 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After uploading the two files my forums shut down and I get this error:


Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home2/montreal/public_html/forums/includes/functions.php on line 2019

If I replace functions.php with the old one it goes away.

this is line 2019:

Quote:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&amp;') . "explain=1\">Explain</a>)<br />\n";
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";
Reply With Quote
  #76  
Old 05-20-2005, 01:05 AM
ry@n ry@n is offline
 
Join Date: Jan 2003
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack.

helped alot.
Reply With Quote
  #77  
Old 05-23-2005, 02:00 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help!!!!!!
Reply With Quote
  #78  
Old 06-05-2005, 01:16 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DannyITR
After uploading the two files my forums shut down and I get this error:


Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home2/montreal/public_html/forums/includes/functions.php on line 2019

If I replace functions.php with the old one it goes away.

this is line 2019:
You are applying the changes incorrectly
Reply With Quote
  #79  
Old 07-14-2005, 11:00 PM
ZGeek ZGeek is offline
 
Join Date: Jan 2003
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to make it that all emails sent out are in html format?
Reply With Quote
  #80  
Old 07-15-2005, 01:28 AM
ZGeek ZGeek is offline
 
Join Date: Jan 2003
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured it out, don't even need this hack. i just changed the line in the included/functions.php from

Code:
$headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
to

Code:
$headers .= 'Content-Type: text/html' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
I hope this helps anyone looking for html emails.
Reply With Quote
  #81  
Old 07-20-2005, 10:45 PM
edbri871 edbri871 is offline
 
Join Date: Apr 2005
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, this hack has helped me a lot.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08509 seconds
  • Memory Usage 2,336KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (10)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete