vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - Send emails with HTML as HTML (https://vborg.vbsupport.ru/showthread.php?t=185310)

bchertov 07-13-2008 10:00 PM

Send emails with HTML as HTML
 
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!

goranbaxy 07-15-2008 08:15 AM

will users have to send PM as HTML?

bchertov 07-16-2008 05:00 AM

Quote:

Originally Posted by goranbaxy (Post 1575741)
will users have to send PM as HTML?

This hack only affects emails, no PMs.

meraia 07-16-2008 10:23 AM

Thankyou

ShackMaster 07-18-2008 02:50 PM

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.

Allan 07-18-2008 05:53 PM

Than you for this hack :)

noppid 07-18-2008 07:31 PM

Quote:

Originally Posted by ShackMaster (Post 1578457)
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.

ShackMaster 07-18-2008 10:40 PM

Yeah... I did. I suppose "if the body of an email contains any HTML." is a dead giveaway. https://vborg.vbsupport.ru/external/2008/07/11.gif

Installed!

ch_racer 12-19-2008 03:44 PM

Awesome! Thanks man.

*ch_racer markes as installed*

newmasalaboard 12-19-2008 04:53 PM

Thanks for the HACK!

Installed :)


All times are GMT. The time now is 05:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01133 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete