File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ let email = ResendEmail(
64
64
]
65
65
)
66
66
~~~~
67
+ #### ` ResendEmail ` supports both ` text ` and ` html ` content.
67
68
68
69
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)
69
70
@@ -88,7 +89,17 @@ Now the email can be sent using resend client
88
89
~~~~ swift
89
90
let id = try await resendClient.emails .send (email)
90
91
~~~~
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
+ ~~~~
92
103
93
104
You can send multiple emails at once by creating a ` ResendBatchEmail ` object.
94
105
Attachments and Tags are not supported for batch sending.
You can’t perform that action at this time.
0 commit comments