code: def send(self, me, to, subject, msg):
          
          msg = MIMEText(msg)
          msg['Subject'] = subject
          msg['From'] = me
          msg['To'] = to
          server = smtplib.SMTP(self.host, self.port)
          server.starttls()
          # Check if user and password defined
          if self._usr and self._pwd:
              server.login(self._usr, self._pwd)
          try:
              # Send email
              server.sendmail(me, [x.strip() for x in to.split(",")], msg.as_string())
          except:
              # Error sending email
              raise Exception("Error Sending Message.")
          # Quit!
          server.quit()
docs: Send Message