sendBulkEmails(config: EmailConfig,payload: BulkEmailPayload,): Promise<BulkSendResult>
Send a bulk email via the configured provider. Every supported provider has a
batch endpoint, so this works for any EmailConfig. Chunks recipients to the
provider's batch limit and POSTs each chunk; logs (never throws) on a non-OK
batch, whose recipients then count as failed. Each batch's provider response
is captured so the caller can relay it to the sender.
config: EmailConfig
payload: BulkEmailPayload
Promise<BulkSendResult>