Emission of thermal dileptons in ultrarelativistic heavy-ion collisions