电子邮件地址的名称中单引号是否合法? [英] Are single quotes legal in the name part of an email address?

查看:188
本文介绍了电子邮件地址的名称中单引号是否合法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如:

jon.o'conner@example.com?

jon.o'conner@example.com ?

推荐答案

,jon.o'conner@example.com是根据RFC 5322的有效电子邮件地址。

Yes, jon.o'conner@example.com is a valid email address according to RFC 5322.

维基百科的电子邮件地址(Syntax section)


电子邮件地址的本地部分可能使用以下任何ASCII字符:

The local-part of the email address may use any of these ASCII characters:


  • 大写和小写英文字母(a-z,A-Z)

  • 数字0到9

  • 字符! #$%& '* + - / =? ^ _`{| }〜

  • 字符。 (点,周期,全站),条件是它不是第一个或最后一个字符,并且还提供它不会连续出现两次或更多次(例如John..Doe @ example.com)。

  • Uppercase and lowercase English letters (a–z, A–Z)
  • Digits 0 to 9
  • Characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~
  • Character . (dot, period, full stop) provided that it is not the first or last character, and provided also that it does not appear two or more times consecutively (e.g. John..Doe@example.com).

(语法在RFC 5322 第3.4.1节和RFC 5321。)

(The syntax is formally defined in RFC 5322 section 3.4.1 and RFC 5321.)

这篇关于电子邮件地址的名称中单引号是否合法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆