Make sure there is remorse.
Be honest about why it happened.
Remove temptations to re-engage with the affair.
Move forward with brutal honesty and care.
Be selective about who you tell.
Consider working with a licensed therapist.