email function

added function to allow users to send emails