def _open(self):
        cfg = self.app.config
        connection_class = smtplib.SMTP
        # If local_hostname is not specified, socket.getfqdn() gets used.
        # For performance, we use the cached FQDN for local_hostname.
        connection = connection_class(
            cfg['EMAIL_HOST'], cfg['EMAIL_PORT'],
            local_hostname=DNS_NAME.get_fqdn())

        if cfg['EMAIL_USE_TLS']:
            connection.ehlo()
            connection.starttls(keyfile=cfg['EMAIL_TLS_KEYFILE'],
                                certfile=cfg['EMAIL_TLS_CERTFILE'])
            connection.ehlo()

        if cfg['EMAIL_HOST_USER'] and cfg['EMAIL_HOST_PASSWORD']:
            connection.login(cfg['EMAIL_HOST_USER'],
                             cfg['EMAIL_HOST_PASSWORD'])
        return connection
Adds another recipient to the message.
dataset/ETHPy150Open quantmind/lux/lux/extensions/smtp/backend.py/EmailBackend._open--crossover with--dataset/ETHPy150Open danjac/Flask-Mail/flaskext/mail/message.py/Message.add_recipient