UNPKG

1.18 kBTypeScriptView Raw
1export declare enum LinkTrackingOptions {
2 TextOnly = "TextOnly",
3 HtmlOnly = "HtmlOnly",
4 HtmlAndText = "HtmlAndText",
5 None = "None"
6}
7export declare enum LinkClickLocation {
8 HTML = "HTML",
9 Text = "Text"
10}
11export declare enum ServerDeliveryTypes {
12 Live = "Live",
13 Sandbox = "Sandbox"
14}
15export declare class Header {
16 Name: string;
17 Value: string;
18 constructor(Name: string, Value: string);
19}
20/**
21 * Attachment content
22 *
23 * @param Name - name of the attachment, for example book.pdf
24 * @param Content - Base64 encoded content, for example: fs.readFileSync('/Folder/book.pdf').toString('base64')
25 * @param ContentID - id of the attachment, in case we are referencing it, for example: cid:123book.pdf
26 * @param ContentType - content type (json, image, etc)
27 * @param ContentLength - length of the message
28 */
29export declare class Attachment {
30 Name: string;
31 ContentID: string | null;
32 Content: string;
33 ContentType: string;
34 ContentLength?: number;
35 Disposition?: string | null;
36 constructor(Name: string, Content: string, ContentType: string, ContentID?: string | null, ContentLength?: number, Disposition?: string);
37}