0

I am using the ampscript redirect-function to redirect to a thankyou page once a successful insert is completed.

IF NOT EMPTY (@Status) THEN

    Redirect(Concat("https://pages.email.test.com/test-conf/?email=",@Email))

ENDIF

I want the URL for the redirect to include @Email in an encrypted format and once redirected to the thankyou page, @Email should get decrypted.

Regards

2

If you really want to encrypt/decrypt the email address, you could use the AMPScript functions "EncryptSymmetric" and "DecryptSymmetric". However if you want to ensure the email address can't be read by an attacker or anyone else it would be a more secure solution to hash the email address and also store this hash in your DataExtension or Subscriber data. On the thankyou page you then check the hash and see which email address/subscriber it belongs to.

Helpful resources:

| improve this answer | |
  • Thanks markus.. One thing if i want to display a modal to the user on the condition of @Status variable.. how to do that.. – learningmode Oct 30 '16 at 16:26
  • Just add the If-statement as a single-line AMPScript and place the html/js code that generates the modal between this line and the single-line AMPScript containing the end of the if-statement. Some examples that suit your use case can be found in the marketing cloud documentation: AMPscript 301 – Markus Slabina Oct 30 '16 at 18:03
2

You can also use the MicrositeURL() function outlined by Adam Spriggs.

http://sprignaturemoves.com/a-case-for-the-micrositeurl-function/

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.