def mail_page_user_change(user, created=False, password=''):
 if created:
  subject = _('CMS - your user account was created.')
 else:
  subject = _('CMS - your user account was changed.')
 send_mail(subject, 'admin/cms/mail/page_user_change.txt', [user.email], {'user': user, 'password': (password or ('*' * 8)), 'created': created}, 'admin/cms/mail/page_user_change.html')

def mail_page_user_change ( user , created = False , password = '' ) : if created : subject = _ ( 'CMS - your user account was created.' ) else : subject = _ ( 'CMS - your user account was changed.' ) send_mail ( subject , 'admin/cms/mail/page_user_change.txt' , [ user . email ] , { 'user' : user , 'password' : ( password or ( '*' * 8 ) ) , 'created' : created } , 'admin/cms/mail/page_user_change.html' )
send email notification to given user .