Querying the Pre-header text | Community
Skip to main content
Level 3
February 28, 2023
Solved

Querying the Pre-header text

  • February 28, 2023
  • 1 reply
  • 669 views

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.
Best answer by akshaaga

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
March 2, 2023

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.