I would like to send a marketing email to my users and I want to include my invitation link into that email. But I can generate invite link with an email only.
Can I generate a link like forum.example.com/invite/<myEmail> or forum.example.com/invite/<myUserName>
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.