MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / EMessage

Class EMessage

src/core/service/email/email.py:6–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5@dataclass
6class EMessage:
7 to: str | list[str]
8 subject: str
9 body: str
10 cc: list[str] = field(default_factory=list)
11 bcc: list[str] = field(default_factory=list)
12 attachments: list[str] = field(default_factory=list)
13 body_type: str = "html"
14
15 def to_dict(self) -> dict[str, Any]:
16 return {
17 "to": self.to,
18 "subject": self.subject,
19 "body": self.body,
20 "cc": self.cc,
21 "bcc": self.bcc,
22 "attachments": self.attachments,
23 "body_type": self.body_type,
24 }

Callers 2

send_confirm_emailMethod · 0.90
handleMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected