sendEmail before returning from function
updated readme