SmtpClient
index
smtpclient.py

This file implement the SmtpClient.

 
Modules
       
logging
smtplib

 
Classes
       
builtins.object
SmtpClient

 
class SmtpClient(builtins.object)
    SmtpClient(smtp=None, port=25, username=None, password=None, use_tls=True, use_gpg=True, debug=False)
 
This class send email with SMTP protocol.
 
  Methods defined here:
__init__(self, smtp=None, port=25, username=None, password=None, use_tls=True, use_gpg=True, debug=False)
Initialize self.  See help(type(self)) for accurate signature.
get_valid_receivers(self, addressS, email)
This method return valid addresses.
If address isn't valid you get a error log in your
logging file with the specific address.
send(self, email: Email.Email, from_: str, to: list, name: str = 'PyEmailTools') -> None
This method send an email.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __all__ = ['SmtpClient']