Open th0rgall opened 2 years ago
I don't think "Accounts with invalid emails can be created" is actually a problem that we want to solve. Validating email addresses is non-trivial: https://stackoverflow.com/questions/20771794/mailrfc822address-regex
I think we should probably instead catch these exceptions when sending and perhaps block future sending to the offending address. We already have the ability to block certain email addresses when a mail server sends us a spam or bounce report so I think we should be able to reuse that same system to block sending to invalid addresses.
Example:
asdjfsdk;@diafj.com
, with the invalid;
character.This leads to errors like the following when the API server tries to send mail:
The
Invalid addr-spec token at offset 0
being the critical issue here.