putting in code that does email sending