Class SMTPCommand


  • public final class SMTPCommand
    extends java.lang.Object
    SMTPCommand stores a set of constants for SMTP command codes. To interpret the meaning of the codes, familiarity with RFC 821 is assumed. The mnemonic constant names are transcriptions from the code descriptions of RFC 821. For those who think in terms of the actual SMTP commands, a set of constants such as HELO are provided where the constant name is the same as the SMTP command.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int AUTH
      The authorization command
      private static java.lang.String[] commands  
      static int DATA
      SMTP command 3.
      static int EHLO
      The extended hello command
      static int EXPAND
      Alias for 9.
      static int EXPN
      SMTP command 9.
      static int HELLO
      Alias for 0.
      static int HELO
      SMTP command 0.
      static int HELP
      SMTP command 10.
      static int LOGIN
      Alias for 0.
      static int LOGOUT
      Alias for 13.
      static int MAIL
      SMTP command 1.
      static int MAIL_FROM
      Alias for 1.
      private static int NEXT  
      static int NOOP
      SMTP command 11.
      static int QUIT
      SMTP command 13.
      static int RCPT
      SMTP command 2.
      static int RECIPIENT
      Alias for 2.
      static int RESET
      Alias for 7.
      static int RSET
      SMTP command 7.
      static int SAML
      SMTP command 6.
      static int SEND
      SMTP command 4.
      static int SEND_AND_MAIL_FROM
      Alias for 6.
      static int SEND_FROM
      Alias for 4.
      static int SEND_MESSAGE_DATA
      Alias for 3.
      static int SEND_OR_MAIL_FROM
      Alias for 5.
      static int SOML
      SMTP command 5.
      static int TURN
      SMTP command 12.
      static int VERIFY
      Alias for 8.
      static int VRFY
      SMTP command 8.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SMTPCommand()
      Cannot be instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getCommand​(int command)
      Gets the SMTP protocol command string corresponding to a specified command code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait