Class SMTPCommand
java.lang.Object
org.apache.commons.net.smtp.SMTPCommand
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
FieldsModifier and TypeFieldDescriptionstatic final intThe authorization commandstatic final intSMTP command 3.static final intThe extended hello commandstatic final intAlias for 9.static final intSMTP command 9.static final intAlias for 0.static final intSMTP command 0.static final intSMTP command 10.static final intAlias for 0.static final intAlias for 13.static final intSMTP command 1.static final intAlias for 1.static final intSMTP command 11.static final intSMTP command 13.static final intSMTP command 2.static final intAlias for 2.static final intAlias for 7.static final intSMTP command 7.static final intSMTP command 6.static final intSMTP command 4.static final intAlias for 6.static final intAlias for 4.static final intAlias for 3.static final intAlias for 5.static final intSMTP command 5.static final intSMTP command 12.static final intAlias for 8.static final intSMTP command 8. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCommand(int command) Gets the SMTP protocol command string corresponding to a specified command code.
-
Field Details
-
HELO
-
MAIL
-
RCPT
-
DATA
-
SEND
-
SOML
-
SAML
-
RSET
-
VRFY
-
EXPN
-
HELP
-
NOOP
-
TURN
-
QUIT
-
AUTH
-
EHLO
-
HELLO
-
LOGIN
-
MAIL_FROM
-
RECIPIENT
-
SEND_MESSAGE_DATA
-
SEND_FROM
-
SEND_OR_MAIL_FROM
-
SEND_AND_MAIL_FROM
-
RESET
-
VERIFY
-
EXPAND
-
LOGOUT
-
-
Method Details
-
getCommand
Gets the SMTP protocol command string corresponding to a specified command code.- Parameters:
command- The command code.- Returns:
- The SMTP protocol command string corresponding to a specified command code.
-