Hello,

I am trying to figure out a token that I can use to automatically include a user's referral link in a Webform's email, based on the email address that user places in a specific email field.

The purpose of this is to provide a form to current users so that they can easily "refer a friend/friends". The webform will have these fields:

My email address (the email address of the referring user)
My friend's email address 1
My friend's email address 2
My friend's email address 3
etc...

As of right now, I have the Webform email set up to include the token "[current-user:referral-link]", which works fine if the referring user is logged in. However, I'm hoping that referral link can be pulled into the Webform email based on the email address entered into the "My email address" field if the referring user is NOT logged in.

Is this possible somehow? Or would this be a "custom module" scenario?

Thanks!