| 4 | |
| 5 | @dataclass |
| 6 | class 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 | } |
no outgoing calls
no test coverage detected