Skip to content

Scriptspot execution details ​

SAREscript can run in several parts of the system. Support for some language features differs between them.

Email address requiredDatabase data modificationImage embeddingsystem_setfrom()system_setsubject()
Mailing -> Editor - preview✅❌✅❌❌
Mailing -> Editor - email preview✅❌✅❌❌
Mailing -> Sending - test email✅❌✅1✅✅
Mailing -> Sending - filter testing❌❌❌❌❌
Mailing -> Sending - actual send
- advanced filter✅✅❌❌❌
- in TXT content✅✅✅✅✅
- in HTML content✅✅✅✅✅
SAREscript -> Run - script execution, depending on the selected data source:
- none❌❌❌❌❌
- selected data❌❌❌❌❌
- selected addresses✅✅❌❌❌
- entire database✅✅❌❌❌
SAREscript -> Run - script debugging, depending on the selected data source:
- none❌❌❌❌❌
- selected data❌❌❌❌❌
- selected addresses✅❌❌❌❌
- entire database✅❌❌❌❌
Reports -> Click map✅❌✅❌❌
Message web preview.✅✅❌❌
Subscription scenarios - displaying and sending objects.✅✅✅✅✅
SOAP interface - calling the Execute method❌✅❌❌❌

✅ supported;

❌ unsupported;

1 supported only when sending with embedded images

In some parts of the system, such as message sending, scriptspot execution order matters.

1. Mailing -> Sending - test email ​

  1. Find links in the email content
  2. Execute SAREscript in TXT content (see the table above)
  3. Insert the TXT scriptspot output into the email
  4. Find and replace personalization tokens (%token%) in TXT content
  5. Execute SAREscript in HTML content (see the table above)
  6. Insert the HTML scriptspot output into the email
  7. Find and replace personalization tokens (%token%) in HTML content
  8. Send the email

2. Mailing -> Sending - actual send ​

  1. Select recipient addresses using a simple filter
  2. Run the advanced filter for each selected email address (see the table above)
  3. Find links in the email content
  4. Find and apply the <sare_subject>, <sare_from_f>, <sare_from_m> and <sare attachment> tags in the email content
  5. Execute SAREscript in TXT content (see the table above)
  6. Convert TXT scriptspot output to the target encoding
  7. Insert the TXT scriptspot output into the email
  8. If the recipient prefers HTML or HTML sending is forced, execute SAREscript in HTML content (see the table above)
  9. Convert HTML scriptspot output to the target encoding
  10. Insert the HTML scriptspot output into the email
  11. Find and replace personalization tokens (%token%) in TXT content
  12. Find and replace personalization tokens (%token%) in HTML content
  13. Send the email

3. SAREscript -> Execute - execution or debugging for selected addresses ​

Select addresses using a simple filter Run the advanced filter for each selected email address (see the table above) Execute SAREscript for each selected address (see the table above)