BatchTransportInterface
in
Batch mail transport interface
Optional companion to TransportInterface. A transport that can send many messages via a provider's native bulk/batch API endpoint (instead of one blocking call per message) should also implement this; Mailer prefers it automatically when sending from a Queue or a directory of saved messages.
Tags
Table of Contents
Methods
- sendBatch() : int
- Send multiple messages in as few underlying calls as the transport supports
Methods
sendBatch()
Send multiple messages in as few underlying calls as the transport supports
public
sendBatch(array<string|int, Message> $messages) : int
Parameters
- $messages : array<string|int, Message>
Return values
int —number of messages sent