code: def send(self, email, attachments=()):
          '''Send an email. Connect/Disconnect if not already connected
  
          Arguments:
              email: Email instance to send.
              attachments: iterable containing Attachment instances
          '''
  
          msg = email.as_mime(attachments)
  
          if 'From' not in msg:
              msg['From'] = self.sender_address()
  
          if self._conn:
              self._conn.sendmail(self.username, email.recipients,
                                  msg.as_string())
          else:
              with self:
                  self._conn.sendmail(self.username, email.recipients,
                                      msg.as_string()f send(self, email, attachments=()):
          '''Send an email. Connect/Disconnect if not already connected
  
          Arguments:
              email: Email instance to send.
              attachments: iterable containing Attachment instances
          '''
  
          msg = email.as_mime(attachments)
  
          if 'From' not in msg:
              msg['From'] = self.sender_address()
  
          if self._conn:
              self._conn.sendmail(self.username, email.recipients,
                                  msg.as_string())
          else:
              with self:
                  self._conn.sendmail(self.username, email.recipients,
                                      msg.as_string())
docs: Send an email. Connect/Disconnect if not already connected
  
          Arguments:
              email: Email instance to send.
              attachments: iterable containing Attachment instances