Loading
시스템 관리자에 대한 피싱 방지 MFA 및 전 직원사용자 MFA 적용 안내 더 많이 읽기

Preheader does not display for AMPScript variables in the inbox

게시 일자: Oct 13, 2022
상세 설명
AMPScript variables used in the preheader won't render in the inbox if positioned in the body tags. They will render in preview and test, but when the email is sent it won't render the value of the variable.


Example

Preheader : Welcome %%=v(@firstname)=%%

HTML:
<html>
<body>
%%[
SET @firstname='Alex'
]%%
</body>
</html>

After sending the above Email, the preheader value won't render in the inbox.
솔루션

When the email is compiled to be sent, we place the preheader block directly after the opening <body> tag.

In order to have the preheader variables render for live sends, your AMPScript block that sets these variables must be placed before the opening <body> tag.


Example

Preheader : Welcome %%=v(@firstname)=%%

HTML:

<html>
%%[
SET @firstname='Alex'
]%%
<body>
Insert some email content here
</body>
</html>

The preheader value will render in the inbox.
Knowledge 기사 번호

000384371

 
로드 중
Salesforce Help | Article