Skip to content

Commit b8f0d38

Browse files
authored
Update README.md
1 parent acdc5b5 commit b8f0d38

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ let email = ResendEmail(
6464
]
6565
)
6666
~~~~
67+
#### `ResendEmail` supports both `text` and `html` content.
6768

6869
Emails can be scheduled to be sent later. The date should be a `Date` object or a string in natural language (e.g.: in 1 min)
6970

@@ -88,7 +89,17 @@ Now the email can be sent using resend client
8889
~~~~swift
8990
let id = try await resendClient.emails.send(email)
9091
~~~~
91-
`ResendEmail` supports both `text` and `html` content.
92+
93+
Scheduled emails can be updated to new schedule or be canceled.
94+
~~~~swift
95+
let id = try await resendClient.emails.send(scheduledEmail)
96+
97+
// update schedule
98+
_ = try await resendClient.emails.update(emailId: id, scheduledAt: "in 5 hours")
99+
100+
// cancel
101+
_ = try await resendClient.emails.cancel(emailId: id)
102+
~~~~
92103

93104
You can send multiple emails at once by creating a `ResendBatchEmail` object.
94105
Attachments and Tags are not supported for batch sending.

0 commit comments

Comments
 (0)