You can do this manually by selecting the “Copy Invite Link” option when you create an invite through the Discourse user interface.
If you need to include invite links in a lot of emails, the approach outlined in this topic would probably work for you: Generating lots of Invite Tokens.