Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Send emails with HTML as HTML Details »»
Send emails with HTML as HTML
Version: 1.00, by bchertov bchertov is offline
Developer Last Online: Apr 2020 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.2 Rating:
Released: 07-13-2008 Last Update: 07-13-2008 Installs: 78
Uses Plugins
Re-useable Code Translations  
No support by the author.

UPDATE: I have tested this on 4.0 Gold and it works! I have released it here:
https://vborg.vbsupport.ru/showthread.php?t=231532


Hi Folks,

Here's a nice little pluggin (No Code changes!) my programmer (Bryan Harris) came up with that sets the email type as HTML if the body of an email contains any HTML.

This is just a copy of the original 3.6 mod (144 installs!) - it works fine under 3.7 too!

This is very powerful and flexible, but also a bit dangerous. This means that any email your system sends out that contains any HTML will be sent as HTML. Which means that the whole email should be formatted as HTML.

So for instance, it makes it very easy to send HTML emails from the ACP - Just include HTML in your message! Same goes for users sending private email.

You'll also need to update some of the stock phrases for the registration confirmation email, password change, etc, that contain links or other HTML, and add line breaks <br /> so they still format correctly. And while you're in there you could add your logo and other nice touches!

It's just one pluggin!

Install time: a few seconds!

This is my first published mod so go easy on me. I'm not up for a bunch of support, but it doesn't seem like much should be needed.

And I'd appreciate it if you clicked Install if you use it, and while your at it, nominate it for MOTM!

Show Your Support

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

Comments
  #2  
Old 07-15-2008, 08:15 AM
goranbaxy goranbaxy is offline
 
Join Date: Jan 2008
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will users have to send PM as HTML?
Reply With Quote
  #3  
Old 07-16-2008, 05:00 AM
bchertov's Avatar
bchertov bchertov is offline
 
Join Date: Dec 2004
Location: Sonoma County, CA
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by goranbaxy View Post
will users have to send PM as HTML?
This hack only affects emails, no PMs.
Reply With Quote
  #4  
Old 07-16-2008, 10:23 AM
meraia meraia is offline
 
Join Date: Aug 2007
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thankyou
Reply With Quote
  #5  
Old 07-18-2008, 02:50 PM
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be good if you had more control over what email forms were being sent via HTML. On standard email forms like the email sent from member to member... or the Contact Us email form... those should have an option to turn off HTML unless this treats those like a standard email client. Most users are not going to know HTML and that they have to insert a <br /> for a line break... or a pair of <br /><br /> for space between two paragraphs (or <p></p>) etc., etc.

I like this for welcome emails and notification emails. I already have the hack for sending admincp email to users and that has a toggle switch to turn it on and off.
Reply With Quote
  #6  
Old 07-18-2008, 05:53 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Than you for this hack
Reply With Quote
  #7  
Old 07-18-2008, 07:31 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ShackMaster View Post
This would be good if you had more control over what email forms were being sent via HTML. On standard email forms like the email sent from member to member... or the Contact Us email form... those should have an option to turn off HTML unless this treats those like a standard email client. Most users are not going to know HTML and that they have to insert a <br /> for a line break... or a pair of <br /><br /> for space between two paragraphs (or <p></p>) etc., etc.

I like this for welcome emails and notification emails. I already have the hack for sending admincp email to users and that has a toggle switch to turn it on and off.
If they don't put <br /> or any html tag for that matter, the email goes out as text. I think you might have misunderstood the description.
Reply With Quote
  #8  
Old 07-18-2008, 10:40 PM
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah... I did. I suppose "if the body of an email contains any HTML." is a dead giveaway.

Installed!
Reply With Quote
  #9  
Old 12-19-2008, 03:44 PM
ch_racer ch_racer is offline
 
Join Date: Jun 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Thanks man.

*ch_racer markes as installed*
Reply With Quote
  #10  
Old 12-19-2008, 04:53 PM
newmasalaboard's Avatar
newmasalaboard newmasalaboard is offline
 
Join Date: Apr 2008
Location: Raipur [C.G.], INDIA
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the HACK!

Installed
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 01:54 PM.


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.05034 seconds
  • Memory Usage 2,289KB
  • Queries Executed 23 (?)
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_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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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