Day 4 Challenge Resources
An outdoor equipment company has launched a “Refer-a-Friend” program in their stores and wants to send an email to its customers that includes a personalised message based on whether the customer has provided a valid referral email address. The email should include the message “We confirm that we have received your referral email address” if the customer has provided a valid email address and “Please provide us with a valid referral email address” if the customer has not provided a valid email address.
If you need a sample dataset to test your AMPscript, you’re in luck! I’ve created one that you can download from this link.
FirstName | LastName | ReferralEmail | |
---|---|---|---|
john.doe@abc.com | John | Doe | jane.smith@defcom |
jane.doe@xyz.com | Jane | Doe | john.doe@abccom |
jim.smith@def.com | Jim | Smith | jane-doexyz.com |
sara.johnson@ghi.com | Sara | Johnson | john.doeabc.com |
mike.maci@jkl.com | Mike | Maci | jane.smith@def.com |
… | … | … | …. |
If you test your AMPscript with one of the sample records provided, your email may look like the following example.
Hello,
Thank you for referring a friend to our perks program!
Please provide us with a valid referral email address.
Best regards,
Wanderer Outdoor Equipment
Crafted with 💜 by AMPscript30.
AMPScripted Smiles Ltd.
456 Data Extension Drive Suite 321, Loop City,
Variable Valley, DE 12345