NTB WPZ Automation - EMail Downloader
Public Member Functions | Public Attributes | List of all members
EmailSender.EMailSender Class Reference

Wrapper Over an SMTP Server to Send EMail Objects. More...

Public Member Functions

def __init__ (self, server, port)
 The Constructor. More...
 
def login (self, username, password)
 Call the login function on the SMTP server. More...
 
def send_message (self, message)
 Send a given message via the SMTP server. More...
 
def quit (self)
 Quit the SMTP connection. More...
 

Public Attributes

 smtp
 

Detailed Description

Wrapper Over an SMTP Server to Send EMail Objects.

Constructor & Destructor Documentation

◆ __init__()

def EmailSender.EMailSender.__init__ (   self,
  server,
  port 
)

The Constructor.

Parameters
server{string} FQDN of the SMTP server
port{int} Port number for the TLS version of SMTP

Member Function Documentation

◆ login()

def EmailSender.EMailSender.login (   self,
  username,
  password 
)

Call the login function on the SMTP server.

Parameters
username{string} Username to use to log into the SMTP server
password{string} Password for given username

◆ quit()

def EmailSender.EMailSender.quit (   self)

Quit the SMTP connection.

◆ send_message()

def EmailSender.EMailSender.send_message (   self,
  message 
)

Send a given message via the SMTP server.

Parameters
message{EMailLib.Email} An email object representing the message to be sent

Member Data Documentation

◆ smtp

EmailSender.EMailSender.smtp

The documentation for this class was generated from the following file: