messages/email_.py
def get_server(address=None):
        """Return an SMTP servername guess from outgoing email address."""
        if address:
            domain = address.split("@")[1]
            try:
                return SMTP_SERVERS[domain]
            except KeyError:
                return ("smtp." + domain, 465)
        return (None, None)
def get_server(address=None):
        if address:
            domain = address.split("@")[1]
            try:
                return SMTP_SERVERS[domain]
            except KeyError:
                return ("smtp." + domain, 465)
        return (None, None)
def get_server ( address = None ) : if address : domain = address . split ( "@" ) [ 1 ] try : return SMTP_SERVERS [ domain ] except KeyError : return ( "smtp." + domain , 465 ) return ( None , None )
Return an SMTP servername guess from outgoing email address.
Return an SMTP servername guess from outgoing email address .