gpt4 book ai didi

email - 电子邮件地址区分大小写吗?

转载 作者:行者123 更新时间:2023-12-03 00:40:54 24 4
gpt4 key购买 nike

我读到,按照标准,电子邮件的第一部分区分大小写,但是我尝试将电子邮件发送到 name@example.comName@example .comNAME@example.com - 每种情况均已到达。

邮件服务器如何处理用户名?是否有可能错过案例并且该消息不会被传递?使用与注册时提供电子邮件地址时所写的完全相同的字母大小写真的很重要吗?

最佳答案

来自RFC 5321, section 2.3.11 :

The standard mailbox naming convention is defined to be"local-part@domain"; contemporary usage permits a much broader set ofapplications than simple "user names". Consequently, and due to along history of problems when intermediate hosts have attempted tooptimize transport by modifying them, the local-part MUST beinterpreted and assigned semantics only by the host specified in thedomain part of the address.

所以,是的,“@”之前的部分可能区分大小写,因为它完全在主机系统的控制之下。但在实践中,没有广泛使用的邮件系统根据大小写来区分不同的地址。

@ 符号后面的部分是域,根据 RFC 1035 ,第 3.1 节,

"Name servers and resolvers must compare [domains] in a case-insensitive manner"

简而言之,您可以安全地将电子邮件地址视为不区分大小写。

关于email - 电子邮件地址区分大小写吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9807909/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com