This question made me wonder: what is the maximum number of different damage types you could have on a single attack?
All official source books allowed, and a party of up to five characters that can help to achieve it of any level up to 20, including epic boons.
(This obviously is a theoretical optimization question, like other such „"what is the max“" questions we have. I do not expect that to come up in play anytime soon.)