Beispiel #1
0
def get_tolist(to):
    if to is None:
        return runmode_config.getconfig("mail.conf", "SMTP",
                                        "to_addrs").split(",")
    else:
        return to
Beispiel #2
0
def get_encrypt():
    return runmode_config.getconfig("mail.conf", "SMTP", "encrypt")
Beispiel #3
0
def get_port():
    return runmode_config.getconfig("mail.conf", "SMTP", "port")
Beispiel #4
0
def get_pwd():
    return runmode_config.getconfig("mail.conf", "SMTP", "login_pwd")
Beispiel #5
0
def get_from_addr():
    return runmode_config.getconfig("mail.conf", "SMTP", "from_addr")
Beispiel #6
0
def get_nick():
    return runmode_config.getconfig("mail.conf", "SMTP", "nick")
Beispiel #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