Adding + text before the @ in an email

我们两清 提交于 2019-12-23 20:18:30

问题


I know with gmail you can have people email you at your email with a +sometext appended to the end of your email and you will receive the email as if it were sent to your normal email. For example, if your email is:

joeshmo@gmail.com

I can email

joeshmo+hello@gmail.com

and joeshmo@gmail.com will receive the email.

Is this a standard for email or only a feature of a few email clients? I'm writing a script that signs up users for an account on a website, and I want that script to work for users who already have an account on said website. My plan is to sign them up with

theiremail+mypersonaltag@theirdomain.com

Thanks for the help.


回答1:


It's a defacto standard that has been around for at least 25 years. However while most email systems will honor the user+tag convention, I am not aware of any RFC that dictates they must honor it.

On the other hand, I'm not aware of any email system where this doesn't work. I'm sure there are some.




回答2:


Qmail uses the negative sign instead of + to similar effect.

Meetup blocks the + sign all together, stating their reasoning as spam control.. https://mobile.twitter.com/meetup_support/status/499291392649080832

You can read more about this in RFC822 http://www.w3.org/Protocols/rfc822/ and RFC5322 http://tools.ietf.org/html/rfc5322#section-3.2



来源:https://stackoverflow.com/questions/25716709/adding-text-before-the-in-an-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!