def send_post_signup_email(user_id):
 for (key, content) in SIGNUP_EMAIL_CONTENT.value.iteritems():
  if (content == SIGNUP_EMAIL_CONTENT.default_value[key]):
   log_new_error('Please ensure that the value for the admin config property SIGNUP_EMAIL_CONTENT is set, before allowing post-signup emails to be sent.')
   return
 user_settings = user_services.get_user_settings(user_id)
 email_subject = SIGNUP_EMAIL_CONTENT.value['subject']
 email_body = ('Hi %s,<br><br>%s<br><br>%s' % (user_settings.username, SIGNUP_EMAIL_CONTENT.value['html_body'], EMAIL_FOOTER.value))
 _send_email(user_id, feconf.SYSTEM_COMMITTER_ID, feconf.EMAIL_INTENT_SIGNUP, email_subject, email_body, feconf.NOREPLY_EMAIL_ADDRESS)

def send_post_signup_email ( user_id ) : for ( key , content ) in SIGNUP_EMAIL_CONTENT . value . iteritems ( ) : if ( content == SIGNUP_EMAIL_CONTENT . default_value [ key ] ) : log_new_error ( 'Please ensure that the value for the admin config property SIGNUP_EMAIL_CONTENT is set, before allowing post-signup emails to be sent.' ) return user_settings = user_services . get_user_settings ( user_id ) email_subject = SIGNUP_EMAIL_CONTENT . value [ 'subject' ] email_body = ( 'Hi %s,<br><br>%s<br><br>%s' % ( user_settings . username , SIGNUP_EMAIL_CONTENT . value [ 'html_body' ] , EMAIL_FOOTER . value ) ) _send_email ( user_id , feconf . SYSTEM_COMMITTER_ID , feconf . EMAIL_INTENT_SIGNUP , email_subject , email_body , feconf . NOREPLY_EMAIL_ADDRESS )
sends a post-signup email to the given user .