public class SendFailedException extends MessagingException:
Raised when SMTP delivery fails for one or more recipients.
import klyn.mails
try:
throw SendFailedException("Rejected recipient")
catch ex as SendFailedException:
print(ex.message)| Modifier and Type | Member | Description |
|---|---|---|
| public property | invalidAddresses | Recipients rejected by the SMTP server. |
| public property | unsentAddresses | Recipients left unsent because of the failure. |
| public property | validSentAddresses | Recipients that were accepted by the SMTP server. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SendFailedExceptionSendFailedException(message as String = "SMTP delivery failed"): |
Creates a send failure. |