Hah, I wish. SO MANY sites disallow the plus symbol in the email name (e.g. something+else@example.com).
This is a valid email. It should be accepted. Arrrgh.
Hah, I wish. SO MANY sites disallow the plus symbol in the email name (e.g. something+else@example.com).
This is a valid email. It should be accepted. Arrrgh.
If you own a Google domain (not for long unfortunetaly, but I hear cloud flare has the same service) you can define *@domain for free and any email sent to the domain ends in the inbox of your choosing. Unlimited adresses.
As for +, I have no idea if it’s being blocked on purpose or by accident, but that kind of thing serves a useful purpose for the recipient, not just being able to create multiple accounts easily: automatic labelling. (And if you’re trying to create multiple accounts, plus addressing is an awfully prosaic approach, and there are plenty of other viable techniques, e.g. mail forwarding services, disposable addresses, adding random dots if you’re using Gmail—abc@, a.bc@, a.b.c@ and ab.c@ all go to the same mailbox.)
let form_email: Option::<String> = /* ... */;
match form_email {
Some(email) if !email.is_empty() => {
// ... send email with validation link
},
_ => {
// report missing email
}
}
If you (can) click the validation link it's a valid email. If not... it's invalid. Saves me the trouble of debugging all the regexes.