Added base class for sending email form java