vb.org Archive

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

elrafei 04-06-2011 06:08 PM

Great mod

thanks

Sharkyman 06-25-2011 03:38 PM

Very good. Thanks.

aldamon 07-28-2011 03:56 PM

Quote:

Originally Posted by wynode (Post 2025335)
Nice addition.

Is there anyway to get this to work ONLY when you want to manually send emails to users.

Admincp -> Users -> Send emails to users

Quote:

Originally Posted by bchertov (Post 2026090)
That's a decent idea and it's probably doable, but I'm not going to do it now. Remember, this mod is only activated if there is HTML in your email, so most/all standard emails will sent as plain text unless you have added HTML to the phrase.

Any progress with this idea? Right now I'm activating/deactivating the plugin when I need to send an Email and when I'm done.

bchertov 07-28-2011 04:48 PM

Quote:

Originally Posted by aldamon (Post 2226086)
Any progress with this idea?

Nope, sorry.

walter_ps2 07-30-2011 08:59 AM

It doesn't work on 4.1.3

bchertov 07-30-2011 10:35 PM

I haven't installed 4.1.3 yet, sorry. Can anybody confirm or deny that there is problem with this hack on 4.1.3? I'd be surprised if there's a problem.

cavyspirit 08-20-2011 06:45 PM

Quote:

Originally Posted by bchertov (Post 2227026)
I haven't installed 4.1.3 yet, sorry. Can anybody confirm or deny that there is problem with this hack on 4.1.3? I'd be surprised if there's a problem.

Dang. I'm wanting to try it on my 4.1.4 soon to be 4.1.5 forum. But would like to know if it works first.

aldamon 08-31-2011 02:38 PM

We sent a newsletter out yesterday with 4.1.5 PL1 and it worked fine.

duditas 12-24-2011 05:57 PM

vB 4.1.8 and still working. Great mod. Thanks!!

deverill2010 02-29-2012 12:37 PM

Does anyone have a complete list of which stock phrases need to be updated for this?

chapsrulez 03-05-2012 06:11 AM

great plugin.
thanks!

mpoorrajab 04-05-2012 11:17 AM

Hi
How can I test forum emails? (Subscription, Activating, Greeting and ...)
Thank you

DuraMater 04-06-2012 10:39 AM

I am very new to all of this, just purchased vBulletin 4.1.11 Patch Level 1 a week ago. How do I install this plugin? Do I just upload the .xml file from my computer using the ACP? Or do I have to physically add it as a new plugin? If so, what would be the hook location in the code? What would be the execution order? Forgive my ignorance, I know some html, a very small amount of css, and nothing about php at all. Thanks in advance!

P.S. - Nevermind. Plugin downloaded, installed, and tested. Worked perfectly! Thank you, bchertov, for this wonderful code!

mpoorrajab 04-07-2012 06:50 PM

I have a problem.
In emails which contain text from forum like PM mails, all lines are merged. Because this type of text isn't HTML.
Is there any way too solve this problem?

Cybex 05-12-2012 07:54 AM

Looks great so far, thanks!

trigatch4 06-06-2012 05:08 PM

For those complaining it alters other e-mails negatively... why not activate it when sending an e-mail and then unactivate/delete? Easy enough. Unless I'm missing something?

Sworm 06-07-2012 12:52 PM

working on 4.2.0?

adwolf1 06-24-2012 02:14 PM

Quote:

Originally Posted by Sworm (Post 2337447)
working on 4.2.0?

it appears to be here.

I wonder if anyone has come up with a solution to the problem of e-mails that get the text all running together, like "new post notifications".

There must be some way to alter the phrases in a template and turn them from text -> html before they are output.

anyone here have an idea of how to get that done? otherwise this is a great mod

bchertov 06-24-2012 08:07 PM

Quote:

Originally Posted by adwolf1 (Post 2342540)
it appears to be here.

I wonder if anyone has come up with a solution to the problem of e-mails that get the text all running together, like "new post notifications".

There must be some way to alter the phrases in a template and turn them from text -> html before they are output.

anyone here have an idea of how to get that done? otherwise this is a great mod

You need to edit those phrases to substitute html breaks < br/ > for the carriage returns.

JamesUK 07-24-2012 08:43 AM

since installing this I have been trying to add images and links to the emails sent by the forum.. im testing using the 'diagnose' email..

No matter what i try to add.. every URL is stripped fom the email when its sent and obviously links dont work with no href declarations, <img> has no src declarations etc..

how do i get past this??

All i am trying to do is add an image to all emails sent by the forum butfor such a simple task this is proving surprisingly hard!

bchertov 07-24-2012 07:58 PM

Quote:

Originally Posted by JamesUK (Post 2350990)
since installing this I have been trying to add images and links to the emails sent by the forum.. im testing using the 'diagnose' email..

No matter what i try to add.. every URL is stripped fom the email when its sent and obviously links dont work with no href declarations, <img> has no src declarations etc..

how do i get past this??

All i am trying to do is add an image to all emails sent by the forum butfor such a simple task this is proving surprisingly hard!

I haven't tried this but what I can tell you is that this all this plugin does is change the header on your email to say it is html. So I suspect something else may be changing the contents. Sorry.

thebucky84 09-17-2012 03:16 AM

works perfect! Love it and thanks!!

artcrimes 10-17-2012 11:13 AM

don't work. 4.2.0

David Copeland 11-20-2012 06:59 AM

Quote:

Originally Posted by artcrimes (Post 2373708)
don't work. 4.2.0

That's too bad.

Anyone else have a fix?

David Copeland 11-28-2012 09:21 PM

Quote:

Originally Posted by David Copeland (Post 2382810)
That's too bad.

Anyone else have a fix?

Bump

bchertov 12-02-2012 06:07 PM

I don't have 4.2 installed, but I'd be surprised if this doesn't work on 4.2. Has anybody tried it on 4.2 besides artcrimes?

khoking 02-07-2013 03:06 PM

Quote:

Originally Posted by bchertov (Post 2387707)
I don't have 4.2 installed, but I'd be surprised if this doesn't work on 4.2. Has anybody tried it on 4.2 besides artcrimes?

I am using 4.2.0, doesn't work.

After I uninstalled, all emails I tried to send via Send Email to User don't go out now. No error, but users just don't get any emails... :(

Dragon Company 03-10-2013 06:44 PM

It will be great if it could work with 4.2.0 ... So nice hack

bchertov 03-10-2013 07:34 PM

Quote:

Originally Posted by khoking (Post 2402640)
I am using 4.2.0, doesn't work.

Thanks for the validation.

Quote:

Originally Posted by khoking (Post 2402640)
After I uninstalled, all emails I tried to send via Send Email to User don't go out now. No error, but users just don't get any emails... :(

If its truly un-installed then its not this hack that is causing your problem. I suspect it's a spam filter.

bchertov 03-10-2013 07:36 PM

Quote:

Originally Posted by Dragon Company (Post 2409205)
It will be great if it could work with 4.2.0 ... So nice hack

I release this hack into the public domain. Anybody is welcome to send me a fix and I'll update it or release a new hack based on this - but please give me credit for original design.

lcn 03-12-2013 03:13 PM

Can anyone confirm that this works with 4.2.0 ?

Dragon Company 03-27-2013 06:39 PM

Quote:

Originally Posted by bchertov (Post 2409217)
I release this hack into the public domain. Anybody is welcome to send me a fix and I'll update it or release a new hack based on this - but please give me credit for original design.

But Im' more a designer than a coder, so I won't be usefull.
Anyway it works perfectly on my 4.2.0. Problem was my server with too agressive cache.

Thanks again for all what you've done

bchertov 03-27-2013 06:46 PM

Quote:

Originally Posted by Dragon Company (Post 2412567)
But Im' more a designer than a coder, so I won't be usefull.
Anyway it works perfectly on my 4.2.0. Problem was my server with too agressive cache.

Thanks again for all what you've done

Thanks for letting me know Dragon!

This is a risk you take with this hack - I'm guess HTML email are more likely to marked as spam. So if you are not recieving the emails that this hack sends out, please check your spam filters.

khoking (and anybody else using 4.2) can you plesae chime in if infact this hack will work with 4.2? Again, if the emails get trapped by a spam filter, it doesn't mean that this hack doesn't work!

Nonowmana 03-27-2013 11:42 PM

for version 4.2

First step:

In admincp/email.php Find:
PHP Code:

print_textarea_row($vbphrase['message_email'], 'message'''1050); 

add just below
PHP Code:

print_yes_no_row('Send HTML Email?''sendhtml'0); 

Find:
PHP Code:

construct_hidden_code('test'$vbulletin->GPC['test']); 

add just below

PHP Code:

construct_hidden_code('sendhtml'$_POST['sendhtml']); 

step 2

in includes/class_mail.php Find:

PHP Code:

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

replaced by:

PHP Code:

if($_POST['sendhtml'])  { 
  
$headers .= 'Content-Type: text/html' iif($encoding"; charset=\"$encoding\"") . $delimiter
}else{ 
  
$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter


source: http://www.vbulletin-ressources.com/...032#post141032

synseal 06-07-2013 03:22 PM

Quote:

Originally Posted by bchertov (Post 2412569)
Thanks for letting me know Dragon!

This is a risk you take with this hack - I'm guess HTML email are more likely to marked as spam. So if you are not recieving the emails that this hack sends out, please check your spam filters.

khoking (and anybody else using 4.2) can you plesae chime in if infact this hack will work with 4.2? Again, if the emails get trapped by a spam filter, it doesn't mean that this hack doesn't work!

This appears to be working fine for me after testing using vb 4.2.0 pl3 with vbseo.

craigvm 11-12-2013 07:27 PM

this mod is working fine for me on vb 4.2.2

stevieb 02-17-2014 10:59 AM

Quote:

Originally Posted by Nonowmana (Post 2412609)
for version 4.2

First step:

In admincp/email.php Find:
PHP Code:

print_textarea_row($vbphrase['message_email'], 'message'''1050); 

add just below
PHP Code:

print_yes_no_row('Send HTML Email?''sendhtml'0); 

Find:
PHP Code:

construct_hidden_code('test'$vbulletin->GPC['test']); 

add just below

PHP Code:

construct_hidden_code('sendhtml'$_POST['sendhtml']); 

step 2

in includes/class_mail.php Find:

PHP Code:

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

replaced by:

PHP Code:

if($_POST['sendhtml'])  { 
  
$headers .= 'Content-Type: text/html' iif($encoding"; charset=\"$encoding\"") . $delimiter
}else{ 
  
$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter


source: http://www.vbulletin-ressources.com/...032#post141032

Hi, thanks for this - will test it shortly..... :)

stevieb 09-13-2014 12:31 PM

Quote:

Originally Posted by Nonowmana (Post 2412609)
for version 4.2

First step:

In admincp/email.php Find:
PHP Code:

print_textarea_row($vbphrase['message_email'], 'message'''1050); 

add just below
PHP Code:

print_yes_no_row('Send HTML Email?''sendhtml'0); 

Find:
PHP Code:

construct_hidden_code('test'$vbulletin->GPC['test']); 

add just below

PHP Code:

construct_hidden_code('sendhtml'$_POST['sendhtml']); 

step 2

in includes/class_mail.php Find:

PHP Code:

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

replaced by:

PHP Code:

if($_POST['sendhtml'])  { 
  
$headers .= 'Content-Type: text/html' iif($encoding"; charset=\"$encoding\"") . $delimiter
}else{ 
  
$headers .= 'Content-Type: text/plain' iif($encoding"; charset=\"$encoding\"") . $delimiter


source: http://www.vbulletin-ressources.com/...032#post141032

Hi

Do you do this after installing the mod or do we just do this and not upload the mod? Specifically for vB 4.2

Art Andrews 09-18-2014 12:14 AM

This is a great mod, but one of the issues we are having is that all of the text in a notification, especially if there is a quote involved, is one large block with no coding applied. Is there any way to change this so actually content of the email is formated as well?

stevieb 10-08-2014 04:57 PM

Quote:

Originally Posted by Art Andrews (Post 2515558)
This is a great mod, but one of the issues we are having is that all of the text in a notification, especially if there is a quote involved, is one large block with no coding applied. Is there any way to change this so actually content of the email is formated as well?

I added divs (HTML) wrapped around the $text (or $message) and that formats the PM alert to an extent. A multi quote gets messy.

However I've since removed the actual PM text and instead added a login link so our users must visit the forum to view PM's.


All times are GMT. The time now is 04:37 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.01421 seconds
  • Memory Usage 1,871KB
  • 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
  • (18)bbcode_php_printable
  • (19)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