whos_there.senders.email
source module whos_there.senders.email
Classes
-
EmailSender — Initialize the Email sender.
source class EmailSender(port: int, sender_email: str, password: str, recipient_emails: list[str])
Bases : Sender
Initialize the Email sender.
Parameters
-
host : str — The SMTP host.
-
port : int — The SMTP port.
-
sender_email : str — The senders email adress.
-
password : str — The email password.
-
recipient_emails : list[str] — The recipients emails.
Attributes
-
server : smtplib.SMTP — SMTP server instance.
Methods
source property EmailSender.server: smtplib.SMTP
SMTP server instance.
Returns
-
smtplib.SMTP — The SMTP instance.
source method EmailSender.send(text: str) → Any