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
Got this error: ERROR: error: '"$emailAddress" must be a valid email address. Got: xxxxx@gmailæ.com' - #0 sendgrid/sendgrid/lib/mail/EmailAddress.php(69): SendGrid\Helper\Assert::email('xxxxx@gma...', 'emailAddress')
Thanks for bringing that to our attention! This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
@thinkingseriousfilter_var used in SendGrid\Helper\Assert::email does not support unicode emails. According to PHP docs FILTER_FLAG_EMAIL_UNICODE is applied only to the local part of the email address. Would it be okay to change it to matching ^(?!\.)((?!.*\.{2})[a-zA-Z0-9\u00E0-\u00FC.!#$%&'*+-/=?^_`{|}~\-\d]+)@(?!\.)([a-zA-Z0-9\u00E0-\u00FC\-\.\d]+)((\.([a-zA-Z]){2,63})+)$ regex (from https://www.regextester.com/108260)?
Got this error:
ERROR: error: '"$emailAddress" must be a valid email address. Got: xxxxx@gmailæ.com' - #0 sendgrid/sendgrid/lib/mail/EmailAddress.php(69): SendGrid\Helper\Assert::email('xxxxx@gma...', 'emailAddress')
$emailAddress should be expanded
sendgrid-php/test/unit/EmailAddressTest.php
Line 675 in 8fad4ab
is also wrong:
"$name" must be a string
?I think that test is all wrong
The text was updated successfully, but these errors were encountered: