added package mail, updated functions

Also changed Response from Class to Interface.
Added to beans.xml functionality for mailsending