A method for producing a surface mounting optoelectronic component comprises
the
following steps: readying a base body with the optoelectronic transmitter and/or
receiver arranged in a recess of the base body, filling the recess of the base
body with a transparent, curable casting compound, and placing the optical device
onto the base body, whereby the optical device comes into contact with the casting compound.