docs
0
# Email System
1
2
Email template creation, mailing list management, campaign execution, and email tracking with SMTP integration.
3
4
## Capabilities
5
6
### Email Campaign
7
8
```python { .api }
9
class EmailCampaign(CremeEntity):
10
"""
11
Email campaign for mass communications.
12
13
Attributes:
14
- name: str, campaign name
15
- subject: str, email subject line
16
- body: TextField, email content
17
- mailing_lists: ManyToMany, target mailing lists
18
19
Methods:
20
- send(): Execute email campaign
21
- get_recipients(): Get all campaign recipients
22
"""
23
```
24
25
### Email Template
26
27
```python { .api }
28
class EmailTemplate(CremeEntity):
29
"""
30
Email template for consistent messaging.
31
32
Attributes:
33
- name: str, template name
34
- subject: str, email subject template
35
- body: TextField, email body template
36
37
Methods:
38
- render(context): Render template with context
39
"""
40
```