Skip to main content
Level 3
Feb 28, 2023 5:59 PM UTC
Solved

Querying the Pre-header text

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
akshaaga
akshaagaAccepted solution
Adobe Employee
Mar 2, 2023 3:23 AM UTC

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.

1 reply

akshaaga
Adobe Employee
akshaagaAdobe EmployeeAccepted solution
Adobe Employee
Mar 2, 2023 3:23 AM UTC

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.

Translate