code for test email