Go to the latest version of this document.

# ``twisted`.`mail`.`interfaces`.`IMessageDeliveryFactory``

interface documentation

`class IMessageDeliveryFactory(Interface): (source)`

View In Hierarchy

An alternate interface to implement for handling message delivery.

It is useful to implement this interface instead of `IMessageDelivery` directly because it allows the implementor to distinguish between different messages delivery over the same connection. This can be used to optimize delivery of a single message to multiple recipients, something which cannot be done by `IMessageDelivery` implementors due to their lack of information.

Method | `getMessageDelivery` | Return an `IMessageDelivery` object.

def getMessageDelivery(): (source)

Return an `IMessageDelivery` object.

This will be called once per message.