Coating by spraying the coating material in the molten state