FEU 1.2.0 - SMTP email validation ???
Posted: Thu Sep 06, 2007 2:47 am
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
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
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

Nearly forgot to mention the error constants are not inthe lang file either - easy to add tho