Documentation

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
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
5.0.0

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


        
On this page

Search results