test for sending emails