The exception includes the sender's address, which the mail server rejected.
| Modifier and Type | Field and Description |
|---|---|
| protected InternetAddress | |
| protected String | |
| protected int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | SMTPSenderFailedException(InternetAddress
the address that failed addr, String the command that was sent to the SMTP server cmd, int the SMTP return code indicating the failure rc, String the error string from the SMTP server err)Constructs an SMTPSenderFailedException with the specified address, return code, and error string. |
| Modifier and Type | Method and Description |
|---|---|
| public InternetAddress | |
| public String | |
| public int | Returns: the return codeReturn the return code from the SMTP server that indicates the reason for the failure. |
| addr | back to summary |
|---|---|
| protected InternetAddress addr | |
| cmd | back to summary |
|---|---|
| protected String cmd | |
| rc | back to summary |
|---|---|
| protected int rc | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SMTPSenderFailedException | back to summary |
|---|---|
| public SMTPSenderFailedException(InternetAddress addr, String cmd, int rc, String err) Constructs an SMTPSenderFailedException with the specified address, return code, and error string.
| |
| getAddress | back to summary |
|---|---|
| public InternetAddress getAddress() Return the address that failed.
| |
| getCommand | back to summary |
|---|---|
| public String getCommand() Return the command that failed.
| |
| getReturnCode | back to summary |
|---|---|
| public int getReturnCode() Return the return code from the SMTP server that indicates the reason for the failure. See RFC 821 for interpretation of the return code.
| |