问题原文
原帖链接 · P Sarauer · CC BY-SA 4.0
I have forms on my in-development website which require the person to enter an e-mail address.
I don't want to have to send them a "verification" e-mail with a URL containing a code, or instructions such as "please reply to this e-mail to verify that you sent it". This is extremely likely to cause problems such as them not receiving it, or not seeing it, or forgetting about it, or don't want to click on URLs for whatever reason. I know that it's "best practice" according to numerous online guides for e-mail, but in reality, it's a major chore for everyone involved.
And having a text such as:
If you wish, you can click this link to verify that you sent this: blablabla
feels pointless since most will not bother unless they have to.
If somebody enters a nasty message into the form and states their enemy's e-mail address, my system will therefore assume that the person owning that e-mail address submitted the form, and perhaps I will add him to my "blackhole list" without considering that it may not be them. And then, when they later actually want to use the service, they can't, because I added them to my list of e-mail addresses to silently ignore, because some entirely different person "framed" them.
Maybe this doesn't happen often in practice, but I've had it happen to me personally, so I know that it does happen, at least sometimes. I've received angry e-mails from people replying to me after somebody wrote something mean and used my e-mail address.
社区高分解答
原帖链接 · Maximillian Laumeister · CC BY-SA 4.0
At its root, this is a problem about verifying ownership of an email address, and as far as I know there are only two ways to practically verify ownership of an email address:
Send a verification email, as you mentioned.
Complete an authentication flow with the email provider, OAuth-style.
Option 2 works great if your user has an email provider that supports 3rd-party auth, such as Gmail/Google. But the only solution guaranteed compatible with most email providers is 1.
In essence, the answer to your question:
How should I handle the problem of people entering others' e-mail addresses without annoying them with “verification” e-mails?
Is that it is impossible in such a way that is fully compatible across all email providers. There is no practical way to verify that someone owns a specific email address besides sending a verification email.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
