I'm loading user details from my main website to my 4.2.1 version forums software via a CURL script command.
In the receiving script I do the following:
$userdm->set('email', qpc_post('email'));
Then later I check if there were errors:
if (count($userdm->errors)) {
for($i=0; $i<count($userdm->errors); $i++) {
print "ERROR{$i}:{$userdm->errors[$i]}\n";
}
} else {
# If everything is OK
$newuserid = $userdm->save();
print "$newuserid\n";
}
If not, I save the user information. This has been working fine for years.
Now, a number of my users are using gmail addresses with + symbol in them.
As an example they can add a + and then anything to a gmail. This allows them to see where the email is coming from potentially. I actually use this option myself.
[email protected]
Anything with that + symbol gets rejected as "You entered an invalid email address."
Can I somehow change a setting to allow + in the email?
In the receiving script I do the following:
$userdm->set('email', qpc_post('email'));
Then later I check if there were errors:
if (count($userdm->errors)) {
for($i=0; $i<count($userdm->errors); $i++) {
print "ERROR{$i}:{$userdm->errors[$i]}\n";
}
} else {
# If everything is OK
$newuserid = $userdm->save();
print "$newuserid\n";
}
If not, I save the user information. This has been working fine for years.
Now, a number of my users are using gmail addresses with + symbol in them.
As an example they can add a + and then anything to a gmail. This allows them to see where the email is coming from potentially. I actually use this option myself.
[email protected]
Anything with that + symbol gets rejected as "You entered an invalid email address."
Can I somehow change a setting to allow + in the email?
Comment