Package africa.sendbyte.emails
Class SendEmailRequest.Builder
java.lang.Object
africa.sendbyte.emails.SendEmailRequest.Builder
- Enclosing class:
SendEmailRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachment(Attachment attachment) attachments(List<Attachment> attachments) build()Sender address.Add a single custom MIME header.idempotencyKey(String idempotencyKey) A unique key (UUID recommended) that makes retries safe against duplicate sends.scheduledAt(String scheduledAt) Schedule delivery for an ISO 8601 datetime string, e.g.scheduledAt(Instant scheduledAt) Schedule delivery for a specificInstant.templateId(String templateId) Send using a saved template (UUID or name) instead of inlinehtml/text.Add one or more recipients.Add a single template variable.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Sender address. Bare (receipts@paylink.ng) or display-name (PayLink <receipts@paylink.ng>). -
to
Add one or more recipients. Repeatable; up to 50 total. -
to
-
subject
-
html
-
text
-
templateId
Send using a saved template (UUID or name) instead of inlinehtml/text. -
variable
Add a single template variable. Repeatable. -
variables
-
cc
-
cc
-
bcc
-
bcc
-
replyTo
-
header
Add a single custom MIME header. Repeatable. -
headers
-
addAttachment
-
attachments
-
tags
-
tags
-
scheduledAt
Schedule delivery for an ISO 8601 datetime string, e.g.2026-06-01T09:00:00Z. -
scheduledAt
Schedule delivery for a specificInstant. -
idempotencyKey
A unique key (UUID recommended) that makes retries safe against duplicate sends. -
build
-