示例#1
0
def get_mail_to():
    default_mail_to = ['*****@*****.**','*****@*****.**']
    mail_to = get_mail_conf('mail', 'mail_to') 
    if mail_to == "":
        return default_mail_to
    else:
        return strToArray(mail_to)
示例#2
0
    else:
        return smtp_server

def get_sent_user():
    default_sent_user = '******'
    sent_user = get_mail_conf('mail', 'sent_user') 
    if sent_user == "":
        return default_sent_user
    else:
        return sent_user

def get_sent_password():
    default_sent_password = '******'
    sent_password = get_mail_conf('mail', 'sent_password') 
    if sent_password == "":
        return default_sent_password
    else:
        return sent_password

def get_mail_to():
    default_mail_to = ['*****@*****.**','*****@*****.**']
    mail_to = get_mail_conf('mail', 'mail_to') 
    if mail_to == "":
        return default_mail_to
    else:
        return strToArray(mail_to)

if __name__ == '__main__':
    print strToArray('[email protected],[email protected]')
    print get_mail_to()