A premolded housing for receiving a component. The housing includes a housing body made of a plastic material or molding compound material, a leadframe of metal, partially molded into the housing body, having a plurality of connector pins projecting from a connecting side of the housing body, for contacting a substrate, a die pad for receiving the component, and two side support areas connected to the die pad via direction-changing areas, the direction-changing areas projecting from housing body on opposite sides and side support areas being situated outside of the housing body, and side support areas and the connector pins extending in the same connecting direction for installation on the substrate. After the soldering tabs and the side support areas have been bent over, the premolded housing is mounted vertically on a substrate, for example a circuit board, and in particular receives a thermopile chip for a gas sensor.