Repository navigation
Expand file tree
/
Copy pathemailContent.ts
More file actions
65 lines (62 loc) · 1.71 KB
/
Copy pathemailContent.ts
File metadata and controls
65 lines (62 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
* Elastic Email REST API
*
* Contact: support@elasticemail.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { BodyPart } from './bodyPart';
import { MessageAttachment } from './messageAttachment';
import { Utm } from './utm';
/**
* Proper e-mail content
*/
export interface EmailContent {
/**
* List of e-mail body parts, with user-provided MIME types (text/html, text/plain etc)
*/
Body?: Array<BodyPart>;
/**
* A key-value collection of custom merge fields, shared between recipients. Should be used in e-mail body like so: {firstname}, {lastname} etc.
*/
Merge?: { [key: string]: string; };
/**
* Attachments provided by sending binary data
*/
Attachments?: Array<MessageAttachment>;
/**
* A key-value collection of custom e-mail headers.
*/
Headers?: { [key: string]: string; };
/**
* Postback header.
*/
Postback?: string;
/**
* E-mail with an optional name to be used as the envelope from address (e.g.: John Doe <email@domain.com>)
*/
EnvelopeFrom?: string;
/**
* Your e-mail with an optional name (e.g.: John Doe <email@domain.com>)
*/
From: string;
/**
* To what addresses should the recipients reply to (e.g. John Doe <email@domain.com>)
*/
ReplyTo?: string;
/**
* Default subject of email.
*/
Subject?: string;
/**
* Name of template.
*/
TemplateName?: string;
/**
* Names of previously uploaded files that should be sent as downloadable attachments
*/
AttachFiles?: Array<string>;
Utm?: Utm;
}