full email function