Adding a viriable to the LINK inside the triggered e-mail possible?

My question is simple, is it possible to include a variable inside a LINK / URL of my triggered-email???

Including a VARIABLE inside a → TEXT works without any problems…

But trying to do the same for URL / LINK <------> there is no option given…
2024-03-06 19_17_05-WhatsApp

I see the following, when trying to put a variable to the LINK manually…
2024-03-06 19_19_13-Triggered Emails _ Wix.com

So as you can see i am trying to generate a CONFIRMATION-LINK to CONFIRM a new registrated USER on my website.

But can’t figure out how to include the TOKEN inside the LINK-URL, to make a clickable LINK out of it (including the neccessary CONFIRMATION-TOKEN) for member-confirmation.

After saving the triggered-email settings → i also can’t find the generated code for LINK-URL…

Text-Variables are beein generated automatically, but the URL/LINK is not included…

Reading old posts, it looks like there was a solution in the past for it (using wix-users) …
This is the corresponding code-part for it…

wixUsers.emailUser(‘verifyRegistration’, results.user.id, {
“variables”: {
“name”: firstName,
“verifyLink”: http://yourdomain.com/post-register?token=${results.approvalToken}
}

But this seems not to be working (at least not using the wix-members-API.

Someone any idea on this?

My GOAL ist it → to avoid to many clicks doing the confirmation-process, that means → avoiding a redirection to a pCONFIRMATION-PAGE and clicking there again a button for confirmation, after putting manually the CONFIRMATION-TOKEN.

There is a better and more direct way to do this → by directly sending the TOKEN inside the link and reading the token directly out on the confirmation page → which immediatelly would confirm the new registered user.

Have you tried just using a button? I am almost positive we can assign variables into the button URL

It is very common to use verbiage like …… click button to confirm or copy and paste this UrL into your browser.

1 Like

Ok, got it, yes → this seems to work!

D A M N !!! → i already found 3 other workarounds for this xDDDDDD, and it was just a button :rofl:

However → workarounds have their pros and cons aswell.

1 Like

Connected to …