InternetMessageFormatHeader

Representation of the email headers formatted under the RFC-6854 (supersedes RFC 822). (https://tools.ietf.org/html/rfc6854) standard. Some further rules (beyond RFC 6854) must also be applied to the data:

  • At least one recipient must exist (to, cc, bcc).

  • For all email addresses:

    • Total length (including both local part and domain) must not exceed 256 characters.

    • Local part must not exceed more than 64 characters.

    • Input domain parts (domain separated by .) must not exceed 63 characters.

    • Address must match standard email address pattern: ^[a-zA-Z0-9](\.?[-_a-zA-Z0-9])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$.

Properties

Link copied to clipboard

List The email addresses belonging to additional recipients.

Link copied to clipboard

List The email addresses belonging to the secondary recipients.

Link copied to clipboard

EmailMessage.EmailAddress The email address belonging to the sender.

Link copied to clipboard

List The email addresses in which responses are to be sent.

Link copied to clipboard

String The subject line of the email message.

Link copied to clipboard

List The email addresses belonging to the primary recipients.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)