get_email_name function added.