You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The next condition on line 73 is wrong (file /mail/EmailAddress.php). if (!is_string($emailAddress) && filter_var($emailAddress, FILTER_VALIDATE_EMAIL))
It turns out that email address shouldn't be a string and should be a valid address simultaneously in order to throw exception.
Probably the right condition is: if (!(is_string($emailAddress) && filter_var($emailAddress, FILTER_VALIDATE_EMAIL)))
The text was updated successfully, but these errors were encountered:
smrtab
added a commit
to smrtab/sendgrid-php
that referenced
this issue
Oct 15, 2018
FYI this logic seems to fail once every 10k times or so, such that the error is thrown when it shouldn't be. We are forcing the email to a string and legitimate emails are still throwing this exception. We've had to comment out this validation because it craps out too often.
Good day,
The next condition on line 73 is wrong (file /mail/EmailAddress.php).
if (!is_string($emailAddress) && filter_var($emailAddress, FILTER_VALIDATE_EMAIL))
It turns out that email address shouldn't be a string and should be a valid address simultaneously in order to throw exception.
Probably the right condition is:
if (!(is_string($emailAddress) && filter_var($emailAddress, FILTER_VALIDATE_EMAIL)))
The text was updated successfully, but these errors were encountered: