function-email-tn