email sender exception handling added