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 :)

theparentpack 01-21-2009 02:32 PM

Nice Hack! Is there any way to disable member use of this and restrict it's use to only admin?

bchertov 01-22-2009 04:14 AM

Quote:

Originally Posted by theparentpack (Post 1720170)
Nice Hack! Is there any way to disable member use of this and restrict it's use to only admin?

Probably, but it's not something I'm going to do at this point. Sorry.

unicorn2433 02-23-2009 09:41 PM

How do I get the pics to show in the emails?
I created the a html page in frontpage and tried to copy the html code into email part and it sent with out pics.

bchertov 02-24-2009 05:46 AM

Quote:

Originally Posted by unicorn2433 (Post 1752702)
How do I get the pics to show in the emails?
I created the a html page in frontpage and tried to copy the html code into email part and it sent with out pics.

If your HTML uses <IMG> tags with href links to URLs that contains the image it seems like it should work. Take a look at your HTML to see how the images are displayed.

kevcj 04-04-2009 10:27 PM

Does this work with vb 3.8X??

soundbarrierpro 04-05-2009 11:51 AM

Quote:

Originally Posted by unicorn2433 (Post 1752702)
How do I get the pics to show in the emails?
I created the a html page in frontpage and tried to copy the html code into email part and it sent with out pics.


If the images are hosted on your domain

<img src="hxxp://www.yourdomain.com/yourimagehere.gif">

I use this excellent hack all the time for my membership.

bchertov 04-05-2009 04:44 PM

Quote:

Originally Posted by kevcj (Post 1783994)
Does this work with vb 3.8X??

I presume so, but I haven't tested it. Sorry.

puregraf 04-07-2009 05:53 PM

i imported it in 3.8 and installed, but it is now showing the HTML checkbox when going to send emails , so i guess it does not work with v.3.8 ??

can someone please verify? i need this for v3.8 , is someone going to make one for the new version soon?

kevcj 04-27-2009 11:25 PM

After doing some testing, this mod works great for basic HTML.

I would like to send out affiliate banners at the top of the subscription emails. My forum is sending out several hundred (if not thousands) of subscription notifications daily. So why can't a banner be inserted at the top of the emails? But the modification has to support objects, frames or javascript.

This is a fine modification for basic HTML. But is there anyway to edit it so that other types of html can be supported?

bchertov 04-29-2009 08:11 PM

Quote:

Originally Posted by kevcj (Post 1800242)
After doing some testing, this mod works great for basic HTML.

I would like to send out affiliate banners at the top of the subscription emails. My forum is sending out several hundred (if not thousands) of subscription notifications daily. So why can't a banner be inserted at the top of the emails? But the modification has to support objects, frames or javascript.

This is a fine modification for basic HTML. But is there anyway to edit it so that other types of html can be supported?

The mod uses a function that looks for HTML tags. if you padded your banner code with a simple <b></b> the mod would know to send it out as HTML.

ricardoNJ 05-14-2009 11:02 PM

No work with 3.8.x

bchertov 05-15-2009 11:45 PM

Quote:

Originally Posted by ricardoNJ (Post 1810957)
No work with 3.8.x

I don't have 3.8 up so I can't test it. Has anybody tried to use this with 3.8?

vip-q.com 05-16-2009 09:04 AM

thanks :)

Install, work in 3.8

robby-gr 06-16-2009 06:07 PM

Yes it is working on 3.8.2
Thanks

ElJulio48_ES 12-21-2009 01:46 AM

Thakyou, it's working on 3.8.4 :D

Thanks again

shakirulqadree 12-28-2009 04:17 PM

Thank you, it's working on 3.8.4
but it reduced the size of image & Showing very small about 4 or 5 pixel

bchertov 12-29-2009 04:19 AM

Quote:

Originally Posted by shakirulqadree (Post 1940555)
Thank you, it's working on 3.8.4
but it reduced the size of image & Showing very small about 4 or 5 pixel

I can't imagine that this mod is responsible for your small image. You've got some other problem.

bchertov 12-29-2009 05:16 AM

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

karel1985 01-02-2010 01:33 PM

Quote:

Originally Posted by bchertov (Post 1941229)
I have tested this on 4.0 Gold and it works! I have released it here:
https://vborg.vbsupport.ru/showthread.php?t=231532

Thanks for releasing !

kent_lkc 01-14-2012 06:39 PM

This is something I wanted for long time.
Tested on vBulletin 3.8.x !


All times are GMT. The time now is 06:14 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
  • Page Generation 0.01245 seconds
  • Memory Usage 1,778KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete