Exemple #1
0
def get_tolist(to):
    if to is None:
        return runmode_config.getconfig("mail.conf", "SMTP",
                                        "to_addrs").split(",")
    else:
        return to
Exemple #2
0
def get_encrypt():
    return runmode_config.getconfig("mail.conf", "SMTP", "encrypt")
Exemple #3
0
def get_port():
    return runmode_config.getconfig("mail.conf", "SMTP", "port")
Exemple #4
0
def get_pwd():
    return runmode_config.getconfig("mail.conf", "SMTP", "login_pwd")
Exemple #5
0
def get_from_addr():
    return runmode_config.getconfig("mail.conf", "SMTP", "from_addr")
Exemple #6
0
def get_nick():
    return runmode_config.getconfig("mail.conf", "SMTP", "nick")
Exemple #7
0
def get_host():
    if platform.system() == "Windows":
        host = runmode_config.getconfig("mail.conf", "SMTP", "windows_host")
    else:
        host = runmode_config.getconfig("mail.conf", "SMTP", "linux_host")
    return host