Class SmtpExchange

java.lang.Object
ch.astorm.smtp4j.protocol.SmtpExchange

public class SmtpExchange extends Object
Protocol exchange data between smtp4j and the sender.
  • Constructor Details

  • Method Details

    • getReceivedData

      public List<String> getReceivedData()
      Returns the data received by smtp4j. Most of the messages will only contain one item. In the case of the SmtpCommand.Type.DATA command, there might be multiple items (each item corresponds to one line in the SMTP protocol).
      Returns:
      The received data.
    • getRepliedData

      public String getRepliedData()
      Returns the response sent back by smtp4j:
      Returns:
      The response data.