changing mail delivery configuration and adding JUnit for  mail delivery