feat: add custom email headers (#260)
This commit is contained in:
@@ -41,12 +41,15 @@ payload: types.EmailCreate = {
|
||||
"from": "no-reply@yourdomain.com",
|
||||
"subject": "Welcome",
|
||||
"html": "<strong>Hello!</strong>",
|
||||
"headers": {"X-Campaign": "welcome"},
|
||||
}
|
||||
|
||||
data, err = client.emails.send(payload)
|
||||
print(data or err)
|
||||
```
|
||||
|
||||
useSend forwards your custom headers to SES. Only the `X-Usesend-Email-ID` and `References` headers are managed automatically.
|
||||
|
||||
Attachments and scheduling:
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user