vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Send HTML Email to Users (https://vborg.vbsupport.ru/showthread.php?t=120069)

akanevsky 06-30-2006 10:00 PM

Send HTML Email to Users
 
/*================================================= =====================*\
|| Send HTML Email to Users
||
|| ================================================== =====
|| Brought to you by:
|| VisionScripts
|| Premium PHP & vBulletin Solutions!
|| ================================================== =====
||
|| Author : Psionic Vision
|| Works on : vBulletin 3.5
|| Released : Jul 01, 2006
||
|| Time required to install: 1 minute
|| Difficulty: easy
\*================================================ ======================*/

DESCRIPTION

Gives admin an ability to send HTML e-mail to users via AdminCP.

STATISTICS

File Changes: 2
Template Changes: 1
Products to Install: 1


FEATURES
  • Uses default style of your forum
  • Users can choose whether to receive Plain Text of HTML Emails

VERSION HISTORY

1.0.0
Initial Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

akanevsky 07-01-2006 08:50 PM

First Post Reserved...

bashy 07-01-2006 09:18 PM

Hi m8, i am trying to install but i cannot find this code in my register template?
Code:

                                        <if condition="$vboptions['enableemail']">
I have tried just searching for enable and <if condition="$vboptions but nothing....any ideas please?

Kaleem 07-01-2006 09:19 PM

thank God i got this

akanevsky 07-01-2006 09:24 PM

Quote:

Originally Posted by bashy
Hi m8, i am trying to install but i cannot find this code in my register template?
Code:

                                        <if condition="$vboptions['enableemail']">
I have tried just searching for enable and <if condition="$vboptions but nothing....any ideas please?

It is present in the default vBulletin skin. Other skins are unsupported.

bashy 07-01-2006 09:27 PM

I have just searched all templates in all styles with that code and the only template showing up is the modifyoptions template, including the default....

I am quite supprised about only being for default as well, how many actually only use the default template?

akanevsky 07-01-2006 09:30 PM

If you are a designer, you should be able to figure these things out yourself. The code you are looking for is the one that displays "accept email from other members" option.

bashy 07-01-2006 09:34 PM

I am only learning but yes i did figure thats what it was all about
But whether i am a desinger or not is neither here nor there, this is your work not mine hence me asking you....I didnt ask for any arrogance, I will bid you good day and leave this 1, thank you anyway!!

FleaBag 07-01-2006 11:38 PM

I think he was just sticking to what he said about only supporting unmodified skins. Nice release!

akanevsky 07-01-2006 11:41 PM

Quote:

Originally Posted by bashy
I am only learning but yes i did figure thats what it was all about
But whether i am a desinger or not is neither here nor there, this is your work not mine hence me asking you....I didnt ask for any arrogance, I will bid you good day and leave this 1, thank you anyway!!

And leave this one after actually installing and using it? I received your newsletter...
There's no arrogance, I'm simply tired of explaining the same things over and over...

Quote:

Nice release!
Thanks.

DementedMindz 07-02-2006 12:03 AM

nice job yet again Psionic Vision

akanevsky 07-02-2006 12:19 AM

Correction: In register template, what you are looking for is:
HTML Code:

<if condition="$show['email']">
Not what is said in readme.
Bashy, I apologize.
DementedMindz, thanks. :)

ViViD 07-02-2006 05:17 AM

Is it also sending HTML automated subscription and register emails or just manual emails ?

bashy 07-02-2006 08:15 AM

No probs...I mangaed to find it and test it before i went bed last night...
Was leaving it till this morning to come back in here and let your know :)
Thanks for a great hack, works well :)


PS.... i wernt referring to leaving the hack, it was the argument i was leaving lol....
I dont like giving up on a hack if there is a possiblilty on getting it to work, I just
dont like arguing lol

Quote:

Originally Posted by Psionic Vision
Correction: In register template, what you are looking for is:
HTML Code:

<if condition="$show['email']">
Not what is said in readme.
Bashy, I apologize.
DementedMindz, thanks. :)


akanevsky 07-02-2006 02:00 PM

Quote:

Is it also sending HTML automated subscription and register emails or just manual emails ?
The hack is only for admin to send manual HTML emails.

Quote:

Thanks for a great hack, works well
Yep, no problems :)

MSheraz86 07-04-2006 04:28 PM

Marvellous Mod :)

Only trouble is that I am sending emails out to myself but I don't seem to be getting any. I went to Users> Send Email to Users and did all the necessary input and sent it off to Admins only but it's of no use :(.

Also when trying to modify "modifyoptions" in default VB skin I get this message (Even when I remove the code that you said and leaving original code there)

Quote:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/.../public_html/forum/includes/adminfunctions_template.php(3537) : eval()'d code on line 64
Where am I going wrong?

I never thought it would be possible to send HTML emails, so Thank You Psionic Vision for making it Possible!! :) I just hope I can get it to actually send the emails :p

akanevsky 07-04-2006 09:23 PM

Make sure you are running that vB 3.5.4... Also, adminfunctions_template has nothing to do with the hack.

MSheraz86 07-04-2006 10:26 PM

Yep, am running vB 3.5.4 and most certainly adminfunctions_template has nothing to do with this mod but that is the error I got.

akanevsky 07-04-2006 10:44 PM

Sorry, this is support thread for this particular mod. I cannot provide support for things that go beyong that point.

MSheraz86 07-05-2006 12:22 AM

Fair enough, but the emails not being sent is a definate from this mod :D so hopefully you can help me out on that matter ;).

Before installing this mod, emails were sent to yahoo, hotmail, personal domain sites etc but now hotmail stands no chance, yahoo may get the email after further repetetive attempts, as for the rest not sure.

I got the email at my yahoo account but none at my hotmail account. Usually i'd probably give up but i'm very eager to have HTML emails being enabled :D. The email that was sent to my yahoo account wasn't HTML based, it was normal font, I dunno why this mod ain't working properly with me lol.

akanevsky 07-05-2006 12:24 AM

I checked this on yahoo, optonline, hotmail and google, it's working for me...

MSheraz86 07-05-2006 12:36 AM

Update: Yahoo is working Fine!!

Stupid of me > Did not realise that options needed to be edited. I chose yes for HTML emails and so finally am seeing HTML based email at yahoo. My header isn't showing lol.

Here's the creepy part..

My IP address is being given away and I have the following on the left hand side appearing.

Quote:

X-Apparently-To:
X-Originating-IP:
Return-Path:
Received:
Received:
To:
Subject: Testing
X-PHP-Script:
From: "MSheraz86@hotmail.com" <MSheraz86@hotmail.com> Add to Address Book
Message-ID: <200607050135.715d63543728@www.themobilefactor.com >
MIME-Version: 1.0
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-Mailer: vBulletin Mail via PHP
Date: Tue, 04 Jul 2006 20:28:35 -0500
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname -
X-AntiAbuse:
X-AntiAbuse:
X-AntiAbuse: Sender Address Domain -
X-Source:
X-Source-Args:
X-Source-Dir:
Content-Length:
Sorry for the mess up there. Why is the above showing in yahoo? I'm glad I didn't send out emails to anyone else lol.

akanevsky 07-05-2006 12:38 AM

I believe those are normal. Configure yahoo not to show headers by default..

MSheraz86 07-05-2006 12:51 AM

Awesome!! Yahoo is sorted then :D, I don't seem to understand why hotmail isn't working. I'm definately certain that hotmail was accessible, I could send emails but now it's not possible. I asked one of my sup mods as well and he didn't get anything at all.

Is there a way to configure the header of my HTML? Yahoo shows the header pointing at http://mail.yahoo.com/config/login?/index.php and I don't see any image there :p.

On a site note some time ago this is EXACTLY How I had imagined HTML emails when I made an attempt to manually send one lol. Anyways putting hotmail aside this is a very useful and great mod :D. Only the issue with hotmail is left along with the header and i'm ready to start sending emails :D.

[I appreciate the on-going support Anthony :)]

maroceve 07-05-2006 10:50 AM

Hey there.

I was wondering if there is way to force users already registered to receive html emails without them checking the box in their options ?

akanevsky 07-05-2006 11:11 AM

Quote:

Originally Posted by maroceve
Hey there.

I was wondering if there is way to force users already registered to receive html emails without them checking the box in their options ?

[SQL]UPDATE user SET htmail = 1[/SQL]

MSheraz86 07-05-2006 03:18 PM

^^ Exremely USEFUL!! :D I ran the query successfully :).

Any luck with why hotmail users are not getting any emails from my site? :(

Kirk Y 07-08-2006 05:44 AM

Nice hack.

* installs

Edit: Psionic, do you by chance have a screenshot of a typical email when using this hack? My test email doesn't look that html..ish and my header image is messed up. It's attempting to call it from the images dir. without my site url. (http://images/misc/blabla.gif)

Edit: Hmm, appears it's something with Gmail. They're not taking too kindly to the CSS or something -- all my other accounts work fine: Comcast, Hotmail, Yahoo, etc.

akanevsky 07-09-2006 10:31 AM

Yes, the GMAIL does not correctly work with HTML e-mails.

Logikos 07-10-2006 09:53 AM

I've been using my own version of this for awhile now and noticed that not many Email Providers accept any CSS. Your best bet is to use the style="" attribute. The template I've been using to send emails that are formated nicely is the following.

HTML Code:

<br />
<table border="0" width="80%" cellpadding="0" cellspacing="0" align="center" style="border: 1px solid #334676;">
<tr>
        <td>

                <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
                <tr>
                        <td><img src="http://www.vbhackers.com/forum/images/misc/vbulletin_hackers_logo.gif"></td>
                </tr>
                <tr>
                        <td valign="top" style="background: #405384;">&nbsp;</td>
                </tr>
                </table>


                <table border="0" width="100%" cellpadding="1" cellspacing="6" align="center">
                <tr>
                        <td class="alt2">

                                <div style="font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;"><strong>New Title</strong></div>
                                <br />
                                <div style="font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;">
                                Some Text Here
                                </div>

                        </td>
                </tr>
                </table>
        </td>
</tr>
</table>
<br />

Notice the style="" attribute being used alot there. You cab basily use any CSS commands in the style attribute for that giving <table>, or <td>. You can see the howto here: http://www.vbhackers.com/forum/showthread.php?t=3840.

akanevsky 07-10-2006 02:28 PM

Thanks for the tip, LiveWire.

MSheraz86 07-12-2006 10:55 AM

Interesting info livewire, where would I insert that style="" attribute? which file are you referring to? :p

I'm using the Silver PS3 style for my forum, maybe that's why hotmail users couldn't get the email while yahoo and gmail users can! I'll need to check this to be sure so please let me know where I could insert this style="" attribute :) thanks.

Logikos 07-12-2006 08:01 PM

Well for example...
HTML Code:

<table>
<tr>
        <td style="background: #405384;">&nbsp;</td>
</tr>
</table>

This will make it so the background color is set to #405384 using the style attribute.

MSheraz86 07-13-2006 08:08 AM

Yes but which template or file am I to enter that into? :)

Logikos 07-14-2006 07:04 PM

I belive the template name in this hack is called 'HTMAIL'.

MSheraz86 07-15-2006 12:57 AM

Found it, made few adjustments yet no possibility of hotmail users getting the email.

I usually figure out these minor issues but this one seems to be out of my understanding. I'm almost near to uninstalling this mod, that's something I just don't wish to do. Is there not anything that I am missing out?

Forum software is correct, Every installation step was taken as according to the guide, no mistakes whatsoever. I don't get why everybody else is able to email hotmail users while i'm the only one around here stuck with this problem of hotmail users not getting the email :(

Surely there has to be a solution for this.

Kirk Y 07-15-2006 03:21 AM

Interesting thing is that I get emails from Playstation Underground all the time and they're formatted with CSS and always show fine. What's Sony doing right that we're not? Dang Japanese...

TCB 07-22-2006 11:02 AM

Is the same 'sent email to users' box used for html and non-html mails?

And when you select all users to sent an email to, type non-html text in the box and sent it. The people without the 'receive html emails' tagged will receive the flat text version, and the people with it enabled will receive the same text, but using the htmail template?

And what happens when you paste an html text in the box and sent it to all users. What do the people receive that haven't enabled the 'receive html emails' option?

akanevsky 07-22-2006 12:58 PM

Quote:

Is the same 'sent email to users' box used for html and non-html mails?
Yes.

Currently, if you have any HTML, it'll be in the text version. Other than that, a plaintext version, as usual, will be received.

manuka 07-25-2006 12:21 AM

Hey, does this hack support mail to multiple groups or lists?

And does it have a bounce handle feature to sort the weed from the chaff?


All times are GMT. The time now is 05:20 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.01874 seconds
  • Memory Usage 1,840KB
  • 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_code_printable
  • (4)bbcode_html_printable
  • (10)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