Added code to test email sending