test script for sending emails