West Ham put their poor Premier League form behind them to reach the group stage of the Europa Conference League.
The Hammers, who have lost their opening three domestic games, demolished Viborg 6-1 on aggregate in the play-off round.
Leading 3-1 from the first leg, David Moyes' side extended their lead on aggregate through Italy forward Gianluca Scamacca in Denmark.
Said Benrahma made it 2-0 on the night before Tomas Soucek added a third.
The Hammers will discover their group-stage opponents on Friday, with Moyes' side now facing six Europa Conference League games between 8 September and 3 November.