Order of Operations

AMPscript processes functions in this order:

  1. HTML Body
  2. Text Body
  3. Subject Line

Any preheader values reside at the beginning of the body and process accordingly.