代码之家  ›  专栏  ›  技术社区  ›  Andrey Chernukha

在EWS中,发件人和发件人的区别是什么?

  •  0
  • Andrey Chernukha  · 技术社区  · 7 年前

    Mailbox 元素具有名为 Sender 和 From . 我真的很困惑他们之间的区别。

    这就是文档所说的 发件人

    Sender元素指定发送项目的人的电子邮件地址

    从…起

    From元素表示从中发送消息的地址

    真的,这对我来说没什么区别。我看到的XML对于这两个元素总是相同的。那么这两者之间的真正区别是什么呢?

    1 回复  |  直到 7 年前
        1
  •  1
  •   MadDev    7 年前

    用通俗易懂的英语:

    From 是谁发来的信息。它是收件人的电子邮件客户端应该显示邮件的发件人。

    Sender 通常与 从…起 该消息是由某个人或实际系统以外的其他系统发出的 从…起 住址

    从…起 发件人 将包含someone@gmail.com. 许多邮件客户端会将其呈现为someone@gmail.com代表you@yourdomain.com.

    来自官方RFC- Registration of Mail and MIME Header Fields

    2.1.2. Header Field: From
    
    Description:  
        Mailbox of message author  
    [...]  
    Related information:
        Specifies the author(s) of the message; that is, the mailbox(es)
        of the person(s) or system(s) responsible for the writing of the
        message. Defined as standard by RFC 822.
    
    2.1.3. Header Field: Sender
    
    Description:  
        Mailbox of message sender  
    [...]  
    Related information:
        Specifies the mailbox of the agent responsible for the actual
        transmission of the message.  Defined as standard by RFC 822.