htLib.mail module
- class htLib.mail.Email(email, password)
Bases:
objectThis class offers method to send a email of a easy mode
- __init__(email, password)
- Parameters
email (str) – user email.
password (str) – user password.
- send_email(dest, message='email from python', server='smtp.live.com', port=587, block=False)
Send a email. defaults It works with gmail
- Parameters
dest (str) – Destination email.
message (str, optional) – messsage to send, defaults to “email from python”
server (str, optional) – server email, defaults to “smtp.live.com”
port (int, optional) – port email, defaults to 587
block (bool, optional) – if it’s True execute in Thread