Skip to main content

EmailBackend

This class provides a basic implementation for handling email messages by returning the count of messages processed. It serves as a backend interface that integrates with a messaging system to facilitate the sending of email communications.

Methods


send_messages()

@classmethod
def send_messages(
email_messages: list
) - > int

Sends a list of email messages and returns the count of messages processed.

Parameters

NameTypeDescription
email_messageslistAn iterable of email message instances to be dispatched through the backend.

Returns

TypeDescription
intThe total number of email message objects that were successfully processed.