I have a list of email addresses and want to send invitation emails for a group membership to them.
When the user clicks on the link in the email the system would not know in advance if he is an existing user or a new user, also in the email list the user can be invited with one email address but chooses to use different one to register. What would be the best solution to make existing users to login and continue with invitation process and the new users to complete registration and continue invitation process as a logged in users. The issue I ran is if the user clicks on the link in the invitation email in the link there is an embedded code which the system matches in a database to determine for what the user was invited for. If the system presents the usual login/register page and he has a choice to click anywhere, the code embedded in the link will not be available to continue the invitation process. How to accomplish this? Thanks!

