Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 4th edition of the Campaign Community Lens newsletter is out now!

Querying the Pre-header text

Avatar

Level 1

If we include a pre-header text in the AEM container; after the email is sent, can we query the back tables to retrieve it? For instance, if I query the Delivery schema, will I be able to pull in a field?

1 Reply

Avatar

Employee

Hi @rntrp,

In AEM, when you send an email using a delivery, the pre-header text that you included in the container is generally not saved as a separate field in the delivery schema.

However, you can retrieve the pre-header text by using the AEM APIs to extract the HTML content of the email message, and then parse the HTML to extract the pre-header text from the appropriate element.

Alternatively, you can use an email service provider (ESP) that allows you to specify a pre-header text separately from the main email content. In this case, you can retrieve the pre-header text from the ESP's API or reporting tools.