vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Prevent E-mail's From Sitting In The Junk Folder (https://vborg.vbsupport.ru/showthread.php?t=79056)

sabret00the 03-29-2005 10:00 PM

Prevent E-mail's From Sitting In The Junk Folder
 
Thanks to Nexlysis (think that's how you spell it) for the tip, it's an easy mod, i installed it on my live board and not only did it send the stuff to my inbox it made babies :o

but open functions.php and find:
PHP Code:

// ###################### Start vb_send_mail #######################
function vb_send_mail($toemail$subject$message$header)
{
    global 
$vboptions;

    if (!
class_exists('Mail'))
    {
        require_once(
'./includes/mail.php');
    } 

and below add:
PHP Code:

    // +++ de-Spam email
    
$message trim($message);
    
// --- de-Spam email 


now find in the same file:
PHP Code:

        if ($vboptions['usemailqueue'] AND !$notsubscription)
        {
            
$data '(' TIMENOW .' , "' addslashes($toemail) . '" , "' addslashes($subject) . '" , "' addslashes($message) . '" , "' addslashes($headers) . '" )'

and then above add
PHP Code:

        // +++ de-Spam email
        
$message trim($message);
        
// --- de-Spam email 

save and upload because you're done. :)

Deaths 03-30-2005 11:16 AM

What does this exactly do ^^?

Bolas 03-30-2005 11:35 AM

it seems to cut all white spaces after and before the message.. Maybe antispam sw are confused by white spaces?

sabret00the 03-30-2005 12:12 PM

Quote:

Originally Posted by Bolas
it seems to cut all white spaces after and before the message.. Maybe antispam sw are confused by white spaces?

got it in one :)

T3MEDIA 03-30-2005 12:59 PM

I see... but I find the biggest issue is AOL why do they block everything??? (from the Forums that is)

C.Birch 03-30-2005 01:48 PM

because aol suck to sum things up, there way to much with all the your emails safe crap and they most block about 80-90% of all incoming email grrr.

Cap'n Steve 03-30-2005 03:41 PM

I would hope that any good filtering software wouldn't have a problem with spaces. Thanks for the hack, though!

sabret00the 03-30-2005 04:00 PM

Quote:

Originally Posted by Cap'n Steve
I would hope that any good filtering software wouldn't have a problem with spaces. Thanks for the hack, though!

apparently they do :ermm:

msimplay 03-30-2005 04:11 PM

Quote:

Originally Posted by sabret00the
apparently they do :ermm:

hmm this is not good no wonder spam gets through my damn filters , on the other hand least my site mails won't go into junk until the fix it :P

nexialys 03-30-2005 05:20 PM

/me << not Nexlysis...

and what have i done to be named on this hack ?!

EDIT: ha, ok, now i remember... the old TRIM trick!!!

Marco van Herwaarden 03-30-2005 05:44 PM

lol, Sabretooth AKA dislexialis :D

bigcurt 03-31-2005 06:06 AM

Sabretooth is going for that master coder ;)

Koutaru 03-31-2005 03:04 PM

:D Does this really work? I'm very curious.

Oblivion Knight 03-31-2005 03:25 PM

Quote:

Originally Posted by Koutaru
:D Does this really work? I'm very curious.

I've no idea, but I've installed it anyway.. :p

Koutaru 03-31-2005 03:44 PM

You don't know how many emails I've gotten about users "losing" emails when I'm almost positive their mail provider put it in the junk or bulk folder. So frustrating.

You know what, if it'll save me from answering those emails, you've got yourself an install ;)

[high]* Koutaru installs[/high]

Bryan Ex 03-31-2005 04:49 PM

Quote:

Originally Posted by T3MEDIA
I see... but I find the biggest issue is AOL why do they block everything??? (from the Forums that is)

It's an automated process. Every time one of their users blocks notices from your board instead of actually managing their mail settings it's a strike against your domain IP. If enough users block you AOL will black list you and then inform you about it a week later when stuff starts bouncing. I'm seeing more and more sites stating they do not accept AOL, Netscape, or Excite addresses being used to register with because the activation notices simply don't get through. Of course those that subscribe to these services rarely understand that their email is being censored rather than filtered. I think I've been blacklisted by AOL about 7 times now. (sigh)

Antivirus 04-05-2005 03:23 PM

Yeah, it's amazing how many new users register on our boards but never click the link in the confirmation email to confirm their registration. I have even had some friends who signed up to the board tell me that the registration email ended up in their junk folder. (sigh)

I think however i can test this by installing this hack, then re-sending the confirmation email to the users awaiting email confirmation. Maybe if i see that some of the finaly confirm it will show that it's working for some of their mail servers...

buro9 04-05-2005 09:40 PM

Only the first half of this hack need be installed.

There is no point trimming the version that goes into the mailqueue, as when the mailqueue is executed each mail is passed to vb_send_mail anyway, which is where the first half of the hack already does the trimming :)

Sure the second trim() would simply be ineffective, but that's reason enough to not bother telling people to put it in ;)

buro9 04-05-2005 09:43 PM

Quote:

Originally Posted by buro9
Only the first half of this hack need be installed.

There is no point trimming the version that goes into the mailqueue, as when the mailqueue is executed each mail is passed to vb_send_mail anyway, which is where the first half of the hack already does the trimming :)

Sure the second trim() would simply be ineffective, but that's reason enough to not bother telling people to put it in ;)

Er, maybe I could've worded that better.

All mail ends up going through vb_send_mail, so you only need apply the hack there (the first instruction above).

JustAskJulie 04-13-2005 05:50 AM

Does this help with Yahoo then? As they seem to automatically put ANY automated emails into the spam folder.

Antivirus 04-19-2005 01:06 PM

Not sure, perhaps you could find out by setting up a test account at Yahoo, creating a test user in AdminCP then sending a test email to that newly created test user's Yahoo account, before and then after installing the hack. If you try it, please let us know!

secret1980 05-11-2005 05:33 PM

thanks for the hack. No idea how it is workin but hope tht it works good :)

MP3 07-26-2005 05:01 PM

thanks

unitrakya 11-07-2007 09:37 AM

is this work on 3.6.8 version?

mano1.com 11-15-2007 10:04 PM

I am curious as well... this junk mail thing is crazy... SO MANY people just don't find the email :(

dtv100 12-02-2007 10:43 AM

would this work on 3.6.8 ?

dtv100 02-13-2008 10:12 AM

bump

SVTCobraLTD 02-13-2008 05:20 PM

I have over 1000 returned emails. I feel like I am constantly contacting yahoo, msn, etc about this problem. Can someone confirm this works and that it works on 3.6.8?


All times are GMT. The time now is 02:53 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.01287 seconds
  • Memory Usage 1,782KB
  • 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
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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