msaUtils Module¶
.email
¶
Classes¶
MSASendEmail ¶
Attributes¶
testmode
instance-attribute
¶
Testmode True doesnt send the email out through SMTP Server
Functions¶
__init__ ¶
__init__(
smtp_host: str,
smtp_port: int,
smtp_username: str,
smtp_password: str,
timeout: int = 60,
testmode: bool = False,
)
send_email
async
¶
send_email(
from_email: str,
to_email: str,
subject: str,
body: str,
jinja_template_path_html: str = "",
)
Send an email.
RAISES | DESCRIPTION |
---|---|
TypeError
|
Error: MSASendEmail: HTML Templatefile ... not exists |
TypeError
|
Error: MSASendEmail: SMTP Server Login failed for User |
Last update:
September 24, 2022
Created: September 24, 2022
Created: September 24, 2022