FEU 1.2.0 - SMTP email validation ???

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
kneehigh
Forum Members
Forum Members
Posts: 17
Joined: Wed Aug 15, 2007 5:23 am

FEU 1.2.0 - SMTP email validation ???

Post by kneehigh »

Using feu 1.2.0 on cms 1.1 'samoa'
defining user as the bit before the '@' & server as the bit after

When I enter an invalid user at a valid server it throws error_serverrejectedemail 
When I enter a valid user at a valid server it throws error_noresponsefromserver1 (because there are 2 sources for this error added a 1 & 2 to differentiate them)
When I enter an address at a nonsense server eg dashdjas.com it seems to throw a silent error because it will not allow me  to continue registration until I put in a valid server but there is no message displayed

this is the relevant code from IsValidEmailAddress
if( !ereg( "^250", $from ) || !ereg("^250", $to))
      {
$result[0] = false;
$result[1] = $module->Lang('error_serverrejectedemail');
return $result;
      }
    else
      {
$result[0] = false;
$result[1] = $module->Lang('error_noresponsefromserver1');
return $result;
      }

When I change the result to true in the else I can proceed -> tearing out what little hair I have left in frustration -> what am I doing wrong ??? is there newer code I should be using (& no we don't have time to upgrade either cmsms or feu as we launch in a week   :o

Nearly forgot to mention the error constants are not inthe lang file either - easy to add tho
Last edited by kneehigh on Thu Sep 06, 2007 3:07 am, edited 1 time in total.
Post Reply

Return to “CMSMS Core”