Added simple email function, to be improved