Package africa.sendbyte.emails
Class Email
java.lang.Object
africa.sendbyte.emails.Email
A sent email as returned by
Emails.send(africa.sendbyte.emails.SendEmailRequest), Emails.get(java.lang.String), and the
items of Emails.list().
Send and list responses populate a summary subset of these fields; a
Emails.get(String) response additionally includes the rendered
html/text bodies and the full events timeline.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChronological lifecycle timeline.getFrom()getHtml()Rendered HTML body.getId()Unique email identifier (prefixedem_).ISO 8601 scheduled send time, ornullfor immediate delivery.Raw status string, e.g.getText()getTo()booleanvoidsetCreatedAt(String createdAt) voidsetEvents(List<EmailEvent> events) voidvoidvoidvoidsetSandbox(boolean sandbox) voidsetScheduledAt(String scheduledAt) voidvoidsetSubject(String subject) voidvoidstatus()The status as a typed enum, mapping unknown values toEmailStatus.UNKNOWN.
-
Constructor Details
-
Email
public Email()
-
-
Method Details
-
getId
Unique email identifier (prefixedem_). -
setId
-
getFrom
-
setFrom
-
getTo
-
setTo
-
getSubject
-
setSubject
-
getStatus
Raw status string, e.g.queued. Seestatus()for the typed value. -
setStatus
-
status
The status as a typed enum, mapping unknown values toEmailStatus.UNKNOWN. -
isSandbox
public boolean isSandbox() -
setSandbox
public void setSandbox(boolean sandbox) -
getHtml
Rendered HTML body. Present onEmails.get(java.lang.String);nullon send/list responses. -
setHtml
-
getText
-
setText
-
getScheduledAt
ISO 8601 scheduled send time, ornullfor immediate delivery. -
setScheduledAt
-
getCreatedAt
-
setCreatedAt
-
getEvents
Chronological lifecycle timeline. Present onEmails.get(java.lang.String);nullotherwise. -
setEvents
-