A humidifier includes a heating element including a porous structure of electrically resistive and thermally conductive material configured to substantially vaporise liquid that is passed through the porous structure. The porous structure has a liquid inlet and a vapour outlet. The humidifier further includes an outer housing surrounding at least a portion of the porous structure for containing the liquid and vapour within the porous structure. The porous structure includes a first electrical connector and a second electrical connector, the first and second connectors being configured for receiving electrical power and applying a voltage across the porous structure to generate heat.