def run_send_all(*args):
    '''
    Send email to all user.
    '''
    for user_rec in MUser.query_all():
        email_add = user_rec.user_email
        send_mail([email_add],
                  "{0}|{1}".format(SMTP_CFG['name'], email_cfg['title']),
                  email_cfg['content'])
def run_send_all ( * args ) : for user_rec in MUser . query_all ( ) : email_add = user_rec . user_email send_mail ( [ email_add ] , "{0}|{1}" . format ( SMTP_CFG [ 'name' ] , email_cfg [ 'title' ] ) , email_cfg [ 'content' ] )
Send email to all user.