Interface EmailProcessorContext


public interface EmailProcessorContext
Provides contextual information for the execution of an EmailProcessor.

An instance of this context is passed by the system to the EmailProcessor.execute(EmailProcessorContext) method.

  • Method Details

    • getEmailItem

      EmailItem getEmailItem()
      Retrieves the EmailItem that is being processed.
      Returns:
      The single EmailItem representing the inbound email.
    • getInboundEmailAddressName

      String getInboundEmailAddressName()
      Retrieves the name of the Inbound Email Address record that received this email.
      Returns:
      The name of the inbound email address, for example, inbox__c.