Add basic function to send an email