*/ public function getId(): ?string; /** * Get message sender (from headers). */ public function getFrom(): ?EmailAddress; /** * Get To recipients. * * @return EmailAddress[] Empty array in case message has no To: recipients */ public function getTo(): array; /** * Get Cc recipients. * * @return EmailAddress[] Empty array in case message has no CC: recipients */ public function getCc(): array; /** * Get Bcc recipients. * * @return EmailAddress[] Empty array in case message has no BCC: recipients */ public function getBcc(): array; /** * Get Reply-To recipients. * * @return EmailAddress[] Empty array in case message has no Reply-To: recipients */ public function getReplyTo(): array; /** * Get Sender. * * @return EmailAddress[] Empty array in case message has no Sender: recipients */ public function getSender(): array; /** * Get Return-Path. * * @return EmailAddress[] Empty array in case message has no Return-Path: recipients */ public function getReturnPath(): array; /** * Get date (from headers). */ public function getDate(): ?\DateTimeImmutable; /** * Get message size (from headers). * * @return null|int|string */ public function getSize(); /** * Get message subject (from headers). */ public function getSubject(): ?string; /** * Get message In-Reply-To (from headers). * * @return string[] */ public function getInReplyTo(): array; /** * Get message References (from headers). * * @return string[] */ public function getReferences(): array; /** * Get first body HTML part. * * @return null|string Null if message has no HTML message part */ public function getBodyHtml(): ?string; /** * Get all body HTML parts as array. * * @return string[] */ public function getBodyHtmlParts(): array; /** * Get all body HTML parts merged into 1 html. * * @return null|string Null if message has no HTML message part */ public function getCompleteBodyHtml(): ?string; /** * Get body text. */ public function getBodyText(): ?string; /** * Get attachments (if any) linked to this e-mail. * * @return AttachmentInterface[] */ public function getAttachments(): array; /** * Does this message have attachments? */ public function hasAttachments(): bool; }