vb.org Archive

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

bchertov 01-25-2007 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:
http://ww.vbulletin.org/forum/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 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!

bchertov 01-26-2007 05:06 PM

Reserved.

beduino 01-26-2007 06:51 PM

tks for share.
all the best
beduino

Caerydd 01-26-2007 08:02 PM

Very nice and useful. Makes emails much less of a chore!

ViViD 01-26-2007 08:15 PM

I am looking for this a lot of years :p Thank you very much.

Veer 01-27-2007 03:28 AM

Can you include the HTML Message Editor?

Snake 01-27-2007 04:14 AM

Thanks for this! :)

bchertov 01-27-2007 05:27 AM

Quote:

Originally Posted by Pehchaan (Post 1168155)
Can you include the HTML Message Editor?

What HTML message editor? Do you mean the advanced Editor and then swap the BB code for HTML? That would be rather cool and convenient, but perhaps someone else could add that!

bchertov 01-27-2007 06:40 AM

Quote:

Originally Posted by Pehchaan (Post 1168155)
Can you include the HTML Message Editor?

Is this what you are talking about? I might get there eventually, but you or anybody else are welcome to do that and post it as your mod!

Veer 01-27-2007 10:16 AM

Quote:

Originally Posted by bchertov (Post 1168187)
What HTML message editor? Do you mean the advanced Editor and then swap the BB code for HTML? That would be rather cool and convenient, but perhaps someone else could add that!

Quote:

Originally Posted by bchertov (Post 1168207)
Is this what you are talking about? I might get there eventually, but you or anybody else are welcome to do that and post it as your mod!

Yes, I think this HTML Editor With Advanced Tool bar would be very helpful for writing HTML or BBCode Email Message. :)

Snake 01-27-2007 12:37 PM

Yes that would be a great idea, of course! :)

redg8r 01-28-2007 01:13 PM

No one asked, so Im curious, is it possible to send html thru the public email contact form (sendmessage.php)? if so, I'd be very worried.

If its an admin only function that works only thru the CP, then I'll gladly install.

Thanks

bchertov 01-28-2007 02:15 PM

Quote:

Originally Posted by redg8r (Post 1168981)
No one asked, so Im curious, is it possible to send html thru the public email contact form (sendmessage.php)? if so, I'd be very worried.

If its an admin only function that works only thru the CP, then I'll gladly install.

Thanks

Yes, this will allow users to send private HTML email.

TPOCJames 01-28-2007 03:32 PM

Thanks! Exactly what I was looking for. *installed*

:)

kurv 02-07-2007 03:55 AM

So far.... Loving this plugin!!! Flawless....

bchertov 02-07-2007 03:20 PM

Quote:

Originally Posted by TPOCJames (Post 1169068)
Thanks! Exactly what I was looking for. *installed*

:)

Quote:

Originally Posted by kurv (Post 1176535)
So far.... Loving this plugin!!! Flawless....

Thanks guys, I thought some of you folks would like this!

tankaya61 02-07-2007 07:33 PM

how can i use google adsense code?
for example;
Code:

<script type="text/javascript"><!--
google_ad_client = "pub-7480331696500728";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text";
google_ad_channel = "";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


bchertov 02-08-2007 05:22 PM

Quote:

Originally Posted by tankaya61 (Post 1177026)
how can i use google adsense code?
for example;

I don't understand your question, do you want to include a google ad in your email? AFAIK, google does not support ads in email.

tankaya61 02-08-2007 07:12 PM

hımmm
i dont know not working adsense kode in mail
sorry bchertov

BobbyBig 02-11-2007 09:37 AM

bchertov there should be options if all users or only admin can use it.
Also in what emails html should be used - I dont like to edit all email phrases and add <br /> because of that.

This is not a bad plugin, but there need to be improvement.

regards

abhimation 02-15-2007 07:06 PM

Thnxxx... I was lookin for something like this !!!

T_Richardson 02-22-2007 02:31 AM

Quote:

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!
Before I install, where do I edit the stock phrases and put in the <br /> code?
I don't want to mess things up.

I was looking for this for a good while, with this info I'll install.

Thanks,
T

bchertov 02-22-2007 03:40 PM

[QUOTE=T_Richardson;1188037]Before I install, where do I edit the stock phrases and put in the <br /> code?/QUOTE]Goto your Admin control panel and pop-down the Language and Phrases section on the left and then choose Search in Phrase. Note that you can search by the phrase content or by the phrase name. You may want to consult the vb manual for a little background on phrases. You want to look for any emails that your system sends out, such as your "welcomemail".

Pay particular attention to the phrases that are of phrase type "email body text".

T_Richardson 02-22-2007 04:04 PM

[QUOTE=bchertov;1188355]
Quote:

Originally Posted by T_Richardson (Post 1188037)
Before I install, where do I edit the stock phrases and put in the <br /> code?/QUOTE]Goto your Admin control panel and pop-down the Language and Phrases section on the left and then choose Search in Phrase. Note that you can search by the phrase content or by the phrase name. You may want to consult the vb manual for a little background on phrases. You want to look for any emails that your system sends out, such as your "welcomemail".

Pay particular attention to the phrases that are of phrase type "email body text".

I found these phrases located under "email body text", now, do I need to erase these and put in my HTML codes in them?

This is what is in my "welcomemail"
PHP Code:

$username,

Thanks for registering at $vboptions[bbtitle]! We are glad you have chosen to be a part of our online gaming community and we hope you enjoy your stay.

All the best,
$vboptions[bbtitle

Do I need to replace that with HTML?

bchertov 02-23-2007 04:19 AM

Quote:

Originally Posted by T_Richardson (Post 1188375)
Do I need to replace that with HTML?

Yes! To have it appear the same, you'll need to add <br /> for each carriage return. So that's one at the end of each paragraph and another for each new line.

timrox 02-23-2007 06:39 AM

i love such elegant solutions, to think i was about to hard-hack about 5 different files! Thanks

bvtonedog 03-01-2007 10:45 PM

excellent, I was just looking for somethings like this. To get around members sending html email I simply disable right after I send out my emails through the acp, though an option to only allow html emails to be sent from the acp would be great

johnny713 03-02-2007 03:25 AM

I not really sure exactly how this work, but I give it a try. *Installed*

bchertov 03-02-2007 04:28 AM

Quote:

Originally Posted by bvtonedog (Post 1193734)
excellent, I was just looking for somethings like this. To get around members sending html email I simply disable right after I send out my emails through the acp, though an option to only allow html emails to be sent from the acp would be great

Why prevent users from sending HTML? I suppose they could put some nasties in it,... I hate assuming people are not going to nice!

Maksa 03-07-2007 11:06 AM

bchertov :) thanks a lot for this hack. i was looking for some hack so i can email my users with html :) i m really happy. thanks a lot.

cartooner 03-15-2007 03:35 PM

Quote:

Originally Posted by bchertov (Post 1188843)
Yes! To have it appear the same, you'll need to add <br /> for each carriage return. So that's one at the end of each paragraph and another for each new line.

Do you need to add a <br /> and a <p>? or just the break.

cartooner 03-15-2007 04:11 PM

..or can I dress up the Welcome Message using html..??

phonexpo 03-15-2007 09:38 PM

@bchertov

Would the receiver of the e-mail see the e-mail in HTML if they had their e-mail setting to read in plain text only?

I use to e-mail my members in HTML, but some of them complained because they just saw the HTML code as they where reading the mail in plain text.

Thanks,

Patrick

bchertov 03-16-2007 04:13 AM

Quote:

Originally Posted by cartooner (Post 1204206)
Do you need to add a <br /> and a <p>? or just the break.

The <br /> will give you a carriage return with no blank line and a <p> </p> will give you both. Personally I like to code with a <br /> for every carriage return (adding an extra for a blank line)

Quote:

Originally Posted by cartooner (Post 1204232)
..or can I dress up the Welcome Message using html..??

Totally! But see below!

Quote:

Originally Posted by phonexpo (Post 1204430)
@bchertov

Would the receiver of the e-mail see the e-mail in HTML if they had their e-mail setting to read in plain text only?

I use to e-mail my members in HTML, but some of them complained because they just saw the HTML code as they where reading the mail in plain text.

That still applies. I've help several users switch to HTML>

phonexpo 03-16-2007 09:36 AM

Quote:

Originally Posted by bchertov (Post 1204601)
That still applies. I've help several users switch to HTML>

Ok, thanks bchertov. How did you help the members switch?, did you post a "How to change your e-mail setting" for each mail client on your forum?, cause that would be a good idea.

Thanks,

Patrick

Tom_S 03-30-2007 08:13 PM

SaWeeeeeeeeT!! Installed!
Thanks ;)

anarx 03-31-2007 01:49 AM

Thank you for this hack :D

:installed:

Barakat 03-31-2007 01:57 AM

i was useing psionic html hack emmm but i dont know why the post was been deleted

anyway this hack is working great and thanks 100000000000000 times

audis3 03-31-2007 07:44 PM

I installed it and i sent an email to myself for testing.
I wrote for example <body bgcolor="CCCCCC">My email here</body> but no change is happening.
Am i doing something wrong?Also when i put an image happening the same.

bchertov 03-31-2007 10:43 PM

Quote:

Originally Posted by audis3 (Post 1217067)
I installed it and i sent an email to myself for testing.
I wrote for example <body bgcolor="CCCCCC">My email here</body> but no change is happening.
Am i doing something wrong?Also when i put an image happening the same.

Make sure you got the pluggin enabled and that your email client is set up to display rendered HTML. I presume this should be handled. you might try with just a <b> & </b> tags or an <a> tag which I know works just fine.


All times are GMT. The time now is 10:32 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.01477 seconds
  • Memory Usage 1,829KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (18)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
  • (40)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