Everyone to whom she spoke smiled. Is whom the subject,object of preposition or direct object?

3 answers

Whom is the object of the preposition, "to."
thank you
Louis was a scoundrel __________ everyone distrusted.