Question
How does the preview work for the email messages created in the "Messaging" section?
Answer
When a preview is triggered for an email message created in the "Messaging" section Leanplum should take a user which should be used for the preview. Here is how this user is chosen:
- Leanplum checks whether there is a test device registered for the user who is currently logged-in at Leanplum dashboard.
- If there is such a device available Leanplum will take the user attributes for the user who is associated with the registered test device. These custom attributes will fill the values in the template except for the "Recipient Email" field.
- If the dashboard user does not have a registered test device, then Leanplum picks an arbitrary user from the userbase to "fill out" values in the message template. That user is the one with the alphabetically first userID;.