Class MailResponse


  • public class MailResponse
    extends Object
    Custom mail message response used to respond to SMTP command with a specific code and message. By default SMTP command is responded with success OK. User can also specify reject message and code in order to abort SMTP mail communication with error.
    Since:
    1.4
    Author:
    Christoph Deppisch
    • Constructor Detail

      • MailResponse

        public MailResponse()
    • Method Detail

      • getCode

        public int getCode()
        Gets the response code.
        Returns:
      • setCode

        public void setCode​(int code)
        Sets the response code.
        Parameters:
        code -
      • getMessage

        public String getMessage()
        Gets the reject message.
        Returns:
      • setMessage

        public void setMessage​(String message)
        Sets the reject message.
        Parameters:
        message -