LILY-377: Fixed emails not being sent