Episode 41 of "Will and Grace"
s02e19 An Affair to Forget
Title: An Affair to Forget
Original Air Date: 04/18/2000 on NBC
Plot Outline:
When Rob and Ellen ask Will and Grace to be the best man and maid of honor at their wedding, Grace's sexy past with the groom is exposed when Ellen learns at her bachelorette party that Grace once slept with Rob. Meanwhile, Jack is confused by his reaction to the entertainment at Rob's bachelor party.