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.

Properties inherited from Exception: message
Properties inherited from Object: type
Constructors

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

Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml