The Stags will play Bury in the second round of the Checkatrade Trophy.
David Flitcroft's men finished top of Group H after three victories against Lincoln City, Wolves U21s and Scunthorpe in mid-week.
The match will be played at One Call Stadium on Tuesday 04 December (7.45pm). Ticket information will be announced in due course,