@eusend_dev/sdk 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ console.log(data?.id) // 9a8b7c6d-5e4f-4a3b-8c1d-0e9f8a7b6c5d (UUID)
|
|
|
57
57
|
| `text` | `string` | Plain text body |
|
|
58
58
|
| `templateId` | `string` | ID of a saved template |
|
|
59
59
|
| `variables` | `Record<string, unknown>` | Template variable substitutions |
|
|
60
|
-
| `headers` | `Record<string, string>` | Custom email headers
|
|
60
|
+
| `headers` | `Record<string, string>` | Custom email headers, written into the outbound message. Header names and values may not contain line breaks. |
|
|
61
61
|
| `trackOpens` | `boolean` | Track open events (default: `true`) |
|
|
62
62
|
| `trackClicks` | `boolean` | Track click events (default: `true`) |
|
|
63
63
|
|
|
@@ -484,6 +484,10 @@ await client.broadcasts.create({
|
|
|
484
484
|
|
|
485
485
|
`{{first_name}}`, `{{last_name}}`, `{{full_name}}`, and `{{email}}` are automatically available per recipient. Custom variables can be defined on the broadcast and are merged with per-recipient data.
|
|
486
486
|
|
|
487
|
+
#### Unsubscribe handling
|
|
488
|
+
|
|
489
|
+
Broadcasts and any send addressed to an audience contact automatically include RFC 8058 one-click unsubscribe headers (`List-Unsubscribe` + `List-Unsubscribe-Post: List-Unsubscribe=One-Click`) alongside a visible unsubscribe footer, so you satisfy Gmail/Yahoo bulk-sender requirements without any extra work. Unsubscribes are recorded against the contact and suppressed on future sends. You don't need to set these headers yourself.
|
|
490
|
+
|
|
487
491
|
### Send a broadcast
|
|
488
492
|
|
|
489
493
|
```ts
|