SendFailedException
class in package klyn.mails

    public class SendFailedException extends MessagingException:

Object
└ Exception
└ MessagingException
└ SendFailedException

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)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | invalidAddresses `invalidAddresses as ArrayList<String>` | Recipients rejected by the SMTP server.
public property | unsentAddresses `unsentAddresses as ArrayList<String>` | Recipients left unsent because of the failure.
public property | validSentAddresses `validSentAddresses as ArrayList<String>` | Recipients that were accepted by the SMTP server.

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SendFailedException `SendFailedException(message as String = "SMTP delivery failed"):` | Creates a send failure.

Inherited Methods
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml