Click or drag to resize
MimeKit

Received Class

A parsed representation of the Received header.
Inheritance Hierarchy
SystemObject
  MimeKitReceived

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.17.0
Syntax
C#
public class Received

The Received type exposes the following members.

Constructors
 NameDescription
Public methodReceived Initializes a new instance of the Received class.
Public methodReceived(String, IPAddress, String, IPAddress, DateTimeOffset) Initializes a new instance of the Received class.
Top
Properties
 NameDescription
Public propertyBy Get or set the name of the receiving host.
Public propertyByTcpInfo Get or set the TCP connection information for the receiving host.
Public propertyClauses Get the collection of clauses that make up the Received header.
Public propertyDateTime Get or set the date and time when the message was received.
Public propertyFor Get or set the recipient address for which the message was received.
Public propertyFrom Get or set the name of the source host.
Public propertyFromTcpInfo Get or set the TCP connection information for the source host.
Public propertyId Get or set the message identifier.
Public propertyVia Get or set the physical link or protocol used to receive the message.
Public propertyWith Get or set the protocol or mechanism used to receive the message.
Top
Methods
 NameDescription
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodStatic memberParse(Byte) Parse the specified input buffer into a new Received instance.
Public methodStatic memberParse(ParserOptions, Byte) Parse the specified input buffer into a new Received instance.
Public methodStatic memberParse(Byte, Int32, Int32) Parse the specified input buffer into a new Received instance.
Public methodStatic memberParse(ParserOptions, Byte, Int32, Int32) Parse the specified input buffer into a new Received instance.
Public methodToString Serializes the Received value to a string.
(Overrides ObjectToString)
Public methodToString(FormatOptions) Serializes the Received value to a string.
Public methodStatic memberTryParse(Byte, Received) Try to parse the given input buffer into a new Received instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Received) Try to parse the given input buffer into a new Received instance.
Public methodStatic memberTryParse(Byte, Int32, Int32, Received) Try to parse the given input buffer into a new Received instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, Int32, Received) Try to parse the given input buffer into a new Received instance.
Top
Remarks

The Received header is used for tracing the path a message has taken through various SMTP servers as it is transmitted from sender to recipient. Each SMTP server that handles the message adds a new Received header to the top of the message, creating a chronological trace of the message's journey through the email infrastructure.

A typical Received header contains several clauses that provide information about the message transfer, including:

  • from - the name of the sending host
  • by - the name of the receiving host
  • via - the physical link or protocol used
  • with - the mail protocol used (e.g., SMTP, ESMTP, etc.)
  • id - a unique identifier for the message
  • for - the recipient address

For more information, see section 4.4 of RFC 5321.

See Also