Discover your intellectual strengths
Whomever is an object pronoun and functions like the pronouns me, him, her and them.
Whoever is a subject pronoun and functions like the pronouns I, he, she and they.
Use 'whomever' in any context where you may use an object pronoun, and 'whoever' in any context where you would use a subject pronoun.