class documentation

Threaded version of SMTP for sending emails "asynchronously"

Method __del__ Destructor to clean up resources.
Method __init__ Initialize the async SMTP wrapper.
Method close Close the WebSocket connection.
Method send_email Send an email asynchronously.
Instance Variable smtp Undocumented
Property is_running Check if the SMTPAsync is currently running.
Method __close_thread Internal method to close the thread.
Instance Variable _is_running Undocumented
Instance Variable _lock Undocumented
Instance Variable _thread Undocumented
def __del__(self):

Destructor to clean up resources.

def __init__(self, host, port, ssl=False, username=None, password=None):

Initialize the async SMTP wrapper.

Parameters
host:strThe server hostname.
port:intThe server port.
ssl:boolUse SSL/TLS. Defaults to False.
username:strThe login username. Defaults to None.
password:strThe login password. Defaults to None.
def close(self):

Close the WebSocket connection.

def send_email(self, from_email, from_password, to_email, subject, message):

Send an email asynchronously.

Parameters
from_email:strThe sender email.
from_password:strThe sender app password.
to_email:strThe recipient email.
subject:strThe email subject.
message:strThe email body.
smtp =

Undocumented

@property
is_running: bool =

Check if the SMTPAsync is currently running.

def __close_thread(self):

Internal method to close the thread.

_is_running: bool =

Undocumented

_lock =

Undocumented

_thread =

Undocumented