minor bug around db email send failure