@@ -297,13 +297,17 @@ public struct SendEmailToMailingList: Codable, Sendable {
297
297
/// - list: The email will be sent to contacts subscribed to this list. Pass "important" to send the email to all of your contacts.
298
298
/// - delaySeconds: Delay sending of this email by the amount of seconds you provide.
299
299
/// - delayUntilDate: Delay sending of this email by the amount of seconds you provide.
300
- public init ( subject: String , body: String , bodyFormat: EmailBodyFormat , list: String = " important " , delaySeconds: TimeInterval ? = nil , delayUntilDate: Date ? = nil ) {
300
+ /// - trackEmailOpens: Whether to track email opens. Allow you to overwrite the project's global setting.
301
+ /// - trackEmailLinkClicks: Whether to track email opens. Allow you to overwrite the project's global setting.
302
+ public init ( subject: String , body: String , bodyFormat: EmailBodyFormat , list: String = " important " , delaySeconds: TimeInterval ? = nil , delayUntilDate: Date ? = nil , trackEmailOpens: Bool ? = nil , trackEmailLinkClicks: Bool ? = nil ) {
301
303
self . subject = subject
302
304
self . body = body
303
305
self . bodyFormat = bodyFormat
304
306
self . list = list
305
307
self . delaySeconds = delaySeconds
306
308
self . delayUntilDate = delayUntilDate
309
+ self . trackEmailOpens = trackEmailOpens
310
+ self . trackEmailLinkClicks = trackEmailLinkClicks
307
311
}
308
312
309
313
/// The subject of the email. Supports personalization.
@@ -331,7 +335,7 @@ public struct SendEmailToMailingList: Codable, Sendable {
331
335
var trackEmailOpens : Bool ?
332
336
333
337
/// Whether to track email opens.
334
- ///
338
+ ///
335
339
/// Allow you to overwrite the project's global setting.
336
340
/// - Default: `nil`- Uses the project's global setting.
337
341
var trackEmailLinkClicks : Bool ?
0 commit comments