(self, config: EmailConfig)
| 292 | """ |
| 293 | |
| 294 | def __init__(self, config: EmailConfig): |
| 295 | self.config = config |
| 296 | validation_errors = config.validate() |
| 297 | if validation_errors: |
| 298 | raise ValueError(f"Invalid email configuration: {', '.join(validation_errors)}") |
| 299 | |
| 300 | @abstractmethod |
| 301 | def send(self, to: str, subject: str, body: str, html: bool = False) -> bool: |