In the insert record behavior, on the first page, there is a setting to set the name of the session that the ID will be saved to.
In the file that sets the email body, open the bindings panel, expand the session collection and find the biding with the same name from the insert behavior and add that to the page.