def send_email_confirmation(form, link):
 send_email(to=form['email'], action=USER_CONFIRM, subject=MAILS[USER_CONFIRM]['subject'], html=MAILS[USER_CONFIRM]['message'].format(email=form['email'], link=link))

def send_email_confirmation ( form , link ) : send_email ( to = form [ 'email' ] , action = USER_CONFIRM , subject = MAILS [ USER_CONFIRM ] [ 'subject' ] , html = MAILS [ USER_CONFIRM ] [ 'message' ] . format ( email = form [ 'email' ] , link = link ) )
e-mail verification mails are sent: a) explicitly: when a user signs up b) implicitly: when a user attempts to log in using an unverified e-mail while email_verification is mandatory .