[2.0.17] Live Email Validate (LEV)

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
21
66%
Very Good
6
19%
Good
2
6%
Fair
0
No votes
Poor
3
9%
 
Total votes: 32

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Thu Sep 01, 2005 4:46 pm

When you get stuck in this way it's a good idea to read back off the MOD script and open and check each file in turn - if anything's missing or wrong it will soon show ;)
`
"It's not the things you do right that matter, it's the things you don't do wrong"

kornhead
Registered User
Posts: 72
Joined: Sun Jun 12, 2005 4:36 pm
Location: Russia
Contact:

Post by kornhead » Fri Sep 02, 2005 11:30 pm

unfortunately it doesn't work with any email boxes i've tryed...

4rum
Registered User
Posts: 60
Joined: Sun Jul 04, 2004 3:21 am

Post by 4rum » Sat Sep 03, 2005 5:29 pm

Can this MODification be enabled ONLY upon a change of email addrress.

Scenario:
  • A user registers and the confirmation email is sent. Activation of the accont is done via the incuded activation URL. This proves a valid email address.
  • Later the member changes the email address..
At this point ONLY can the LEV MODification be set to kick in?

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Sat Sep 03, 2005 11:35 pm

Why would you not want to verify the original submission? If it's somehow wrong, that activation email will bounce. LEV addresses this problem at source by checking ANY submission of the profile form for a valid email account.
`
"It's not the things you do right that matter, it's the things you don't do wrong"

4rum
Registered User
Posts: 60
Joined: Sun Jul 04, 2004 3:21 am

Post by 4rum » Sun Sep 04, 2005 12:54 am

That does not answer my question and I explained why. Email is validated at registration.

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Sun Sep 04, 2005 1:43 am

If you're going to be short, then so shall I.

NO.

LEV will continue to be enabled for all submissions.
`
"It's not the things you do right that matter, it's the things you don't do wrong"

kristara
Registered User
Posts: 80
Joined: Mon Sep 19, 2005 6:45 am
Contact:

Post by kristara » Sat Sep 24, 2005 3:38 am

I have the mod installed, however, the text in the admin panel doesn't show up, neither is the YES checked. When I click YES, and go back to the config, the text shows up and the check. However, when I leave the configuration and go back to it, it defaults to the previous.

Any idea?

(Off topic sort of) Also, I have ran across more than once when you get an error in a table about a duplicate entry. (mine seems to be okay this time) However, prior to this mod install, someone told me I have to reinstall the whole DB to fix it. Any quick fixes for that one?

Thanks alot!
Last edited by kristara on Sun Sep 25, 2005 3:37 am, edited 1 time in total.

kristara
Registered User
Posts: 80
Joined: Mon Sep 19, 2005 6:45 am
Contact:

Post by kristara » Sat Sep 24, 2005 3:54 am

oops

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Sun Sep 25, 2005 10:23 am

Has the SQL been executed? Either use the supplied setup script or run the query manually (or use EM if you're that way inclined). This kind of fault is usually due to missing $lang entries ;)
`
"It's not the things you do right that matter, it's the things you don't do wrong"

crossfire39
Registered User
Posts: 61
Joined: Thu Jan 27, 2005 1:43 am

Post by crossfire39 » Tue Sep 27, 2005 1:57 am

I am getting this error for every fake email address I try for every provider: hotmail, aol, yahoo, etc.
Could not connect to the mail server, see the FAQ page for further info
aol.com : no route to this domain, host unavailable


Help appreciated.

Thank you.

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Tue Sep 27, 2005 2:10 am

This problem is due to the way web-based mailhosts are set up. Try a proper POP3 mailbox on a regular ISP account. That error message means the remote site isn't allowing any connections on port 25 from anywhere outside their own domain, fairly typical for the providers you've mentioned. :roll:
`
"It's not the things you do right that matter, it's the things you don't do wrong"

User avatar
OmNi.Eternal
Registered User
Posts: 7
Joined: Fri Sep 23, 2005 6:21 am
Location: Indiana, United States
Contact:

Post by OmNi.Eternal » Tue Sep 27, 2005 6:20 pm

You should note that in some IIS Win32 systems running PHP the popen/exec/system/passthru functions won't execute properly depending on the php version and/or the configuration of IIS.

From what i've gathered, the recent versions of PHP 4 automaticly prepend cmd /c to commands and if IIS is locked down it denies access to the cmd.exe file therefore the nslookup fails to execute properly and will cause the message that it could not connect to the mail server, no route etc...

To get this to work on my system I granted the Internet Guest and the web service access to cmd.exe.

User avatar
OmNi.Eternal
Registered User
Posts: 7
Joined: Fri Sep 23, 2005 6:21 am
Location: Indiana, United States
Contact:

Post by OmNi.Eternal » Tue Sep 27, 2005 8:13 pm

After getting the shell processes working on win32 i still had some issues. I did some searching and found some windows equiv functions for getmxrr and checkdnsrr. Then I copied and renamed the unix function to the windows function and substutited the unix function calls with the new windows functions. Seems to be working great now.

BTW, Thanks for this mod!

Below is the code that i used:

Code: Select all

function wingetmxrr($hostname, &$mxhosts)
{
   $mxhosts = array();
   exec('nslookup -type=mx '.$hostname, $result_arr);
   foreach($result_arr as $line) 
   {
     if (preg_match("/.*mail exchanger = (.*)/", $line, $matches)) 
         $mxhosts[] = $matches[1];
   }
   return( count($mxhosts) > 0 );
}//--End of workaround

function winCheckDNSRR($hostName, $recType = '') 
{ 
 if(!empty($hostName)) { 
   if( $recType == '' ) $recType = "MX"; 
   exec("nslookup -type=$recType $hostName", $result); 
   // check each line to find the one that starts with the host 
   // name. If it exists then the function succeeded. 
   foreach ($result as $line) { 
     if(eregi("^$hostName",$line)) { 
       return true; 
     } 
   } 
   // otherwise there was no mail handler for the domain 
   return false; 
 } 
 return false; 
}


function check_smtp_addr_win($email)
{
  list($username, $domain) = explode('@', $email);

  if (wincheckdnsrr($domain, 'MX'))
  {
    wingetmxrr($domain, $mxhosts);
    $result = probe_smtp_mailbox($email, $mxhosts[0]);

    if ($result['error'] == false)
    {
    	return $result;
    }

    for ($i = 1; $i < count($mxhosts); $i++)
    {
      $result = probe_smtp_mailbox($email, $mxhosts[$i]);
      if ($result['error'] == false)
      {
      	return $result;
      }
    }
    return $result;
  }
  else
  {
  	return (probe_smtp_mailbox($email, $domain));
  }
}

crossfire39
Registered User
Posts: 61
Joined: Thu Jan 27, 2005 1:43 am

Post by crossfire39 » Tue Sep 27, 2005 10:57 pm

Thanks for the help and fast reply.

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 » Wed Sep 28, 2005 12:06 pm

Nice one! :D
`
"It's not the things you do right that matter, it's the things you don't do wrong"

Post Reply

Return to “[2.0.x] MOD Database Releases”