Wrapper class for sending mails using java