West Ham will play either Denmark's Viborg FF or B36 Torshavn of the Faroe Islands in the Europa Conference League play-off round.
The Hammers also finished seventh in the Premier League to qualify for Europe's third-tier tournament.
Ties for the play-off round will take place on 18 and 25 August.
More to follow.
- Our coverage of West Ham United is bigger and better than ever before - here's everything you need to know to make sure you never miss a moment