MatrixTest.EmailService.MailjetProvider¶
- class MatrixTest.EmailService.MailjetProvider.MailjetProvider(*, api_key: str, api_secret: str)[source]¶
Bases:
MatrixTest.EmailService.EmailProvider.EmailProvider
This is the adaptor class for Mailjet.
- __init__(*, api_key: str, api_secret: str)[source]¶
Initialize self. See help(type(self)) for accurate signature.
- 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.