Package ch.astorm.smtp4j.protocol
Class SmtpExchange
java.lang.Object
ch.astorm.smtp4j.protocol.SmtpExchange
Protocol exchange data between smtp4j and the sender.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the data received by smtp4j.Returns the response sent back by smtp4j:
-
Constructor Details
-
SmtpExchange
-
-
Method Details
-
getReceivedData
Returns the data received by smtp4j. Most of the messages will only contain one item. In the case of theSmtpCommand.Type.DATAcommand, there might be multiple items (each item corresponds to one line in the SMTP protocol).- Returns:
- The received data.
-
getRepliedData
Returns the response sent back by smtp4j:- Returns:
- The response data.
-