Interface EmailItem


public interface EmailItem
Represents a single email.
  • Method Details

    • getEmailBodySize

      int getEmailBodySize(EmailBodyType emailBodyType)
      Retrieves the size in bytes of this email body.
      Parameters:
      emailBodyType - the EmailBodyType to get the size of
      Returns:
      int size in bytes
    • getEmailFile

      EmailFileReference getEmailFile()
      Retrieves a FileReference pointing to the stored .eml file to be used to create a document or attachment.
      Returns:
      EmailFileReference pointing to the .eml file
    • getEmailAttachments

      List<EmailFileReference> getEmailAttachments()
      Retrieves a list of email attachments that were sent with this email.
      Returns:
      List of EmailFileReferences pointing to email attachment files
    • getHeaderNames

      List<String> getHeaderNames()
      Retrieves a list of email header names.
      Returns:
      list of EmailHeaders
    • getHeaderValues

      List<String> getHeaderValues(String headerName)
      Retrieves a list of email header values for the given header name.
      Parameters:
      headerName - header for which to get values
      Returns:
      list of header values
    • getId

      String getId()
      Retrieves the ID of the email__sys record.
      Returns:
      record id
    • getMessageId

      String getMessageId()
      Retrieves the Message-ID header value of this email.
      Returns:
      email Message-ID value
    • getRecipient

      EmailRecipient getRecipient()
      Retrieves the recipient of this email.
      Returns:
      EmailRecipient
    • getSender

      EmailSender getSender()
      Retrieves the sender of this email.
      Returns:
      EmailSender
    • getSentDate

      ZonedDateTime getSentDate()
      Retrieves the date this email was sent.
      Returns:
      date time
    • getSubject

      String getSubject()
      Retrieves the subject line of this email.
      Returns:
      subject line
    • getToAddresses

      List<EmailAddress> getToAddresses()
      Retrieves a list of To email addresses.
      Returns:
      list of To addresses
    • getCcAddresses

      List<EmailAddress> getCcAddresses()
      Retrieves a list of carbon copy email addresses.
      Returns:
      list of email addresses