MatrixTest.EmailService.EmailProvider¶
- class MatrixTest.EmailService.EmailProvider.EmailProvider[source]¶
Bases:
object
This is the base class of all email sending services. User can extend this abstract class to connect other email services.
- abstract send(matrix: Dict[str, List[str]], to: str, attachment_path: Optional[str] = None) → bool[source]¶
Send the email.
- Parameters
matrix – The argument matrix will be included in the email for reference.
to – The recipient.
attachment_path – The Excel file.
- Returns
if the sending is successfully executed. Returning
True
does NOT mean the email has already been delivered, the meaning of return value may vary across difference email service platforms.