feat: add custom email headers (#260)

This commit is contained in:
KM Koushik
2025-09-28 21:33:45 +10:00
committed by GitHub
parent 1a00999bf0
commit 890ad72057
15 changed files with 202 additions and 30 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "usesend"
version = "0.2.4"
version = "0.2.5"
description = "Python SDK for the UseSend API"
authors = ["UseSend"]
license = "MIT"
+2
View File
@@ -215,6 +215,7 @@ EmailCreate = TypedDict(
'attachments': NotRequired[List[Attachment]],
'scheduledAt': NotRequired[Union[datetime, str]],
'inReplyToId': NotRequired[str],
'headers': NotRequired[Dict[str, str]],
}
)
@@ -239,6 +240,7 @@ EmailBatchItem = TypedDict(
'attachments': NotRequired[List[Attachment]],
'scheduledAt': NotRequired[Union[datetime, str]],
'inReplyToId': NotRequired[str],
'headers': NotRequired[Dict[str, str]],
}
)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "usesend-js",
"version": "1.5.3",
"version": "1.5.4",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
+8
View File
@@ -535,6 +535,10 @@ export interface paths {
bcc?: string | string[];
text?: string | null;
html?: string | null;
/** @description Custom headers to included with the emails */
headers?: {
[key: string]: string;
};
attachments?: {
filename: string;
content: string;
@@ -598,6 +602,10 @@ export interface paths {
bcc?: string | string[];
text?: string | null;
html?: string | null;
/** @description Custom headers to included with the emails */
headers?: {
[key: string]: string;
};
attachments?: {
filename: string;
content: string;