Package africa.sendbyte.emails
Class SendEmailRequest
java.lang.Object
africa.sendbyte.emails.SendEmailRequest
The payload for
Emails.send(SendEmailRequest).
Built with a fluent builder() because most fields are optional.
At minimum, provide from, at least one to recipient, and one of
html, text, or templateId.
SendEmailRequest req = SendEmailRequest.builder()
.from("PayLink <receipts@paylink.ng>")
.to("amaka@halo.ng")
.subject("Receipt for ₦45,000")
.html("<p>Payment received.</p>")
.text("Payment received.")
.tags("receipt", "payment")
.idempotencyKey("order-4421-receipt")
.build();
-
Method Details
-
getFrom
-
getTo
-
getSubject
-
getHtml
-
getText
-
getTemplateId
-
getVariables
-
getCc
-
getBcc
-
getReplyTo
-
getHeaders
-
getAttachments
-
getTags
-
getScheduledAt
-
getIdempotencyKey
-
builder
-