add email and unit test

1 send email to myself when app start and end;
2 add unit test for emailSender;