Scriptspot execution details
SAREscript can run in several parts of the system. Support for some language features differs between them.
| Email address required | Database data modification | Image embedding | system_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
- Find links in the email content
- Execute SAREscript in TXT content (see the table above)
- Insert the TXT scriptspot output into the email
- Find and replace personalization tokens (%token%) in TXT content
- Execute SAREscript in HTML content (see the table above)
- Insert the HTML scriptspot output into the email
- Find and replace personalization tokens (%token%) in HTML content
- Send the email
2. Mailing -> Sending - actual send
- Select recipient addresses using a simple filter
- Run the advanced filter for each selected email address (see the table above)
- Find links in the email content
- Find and apply the
<sare_subject>,<sare_from_f>,<sare_from_m>and<sare attachment>tags in the email content - Execute SAREscript in TXT content (see the table above)
- Convert TXT scriptspot output to the target encoding
- Insert the TXT scriptspot output into the email
- If the recipient prefers HTML or HTML sending is forced, execute SAREscript in HTML content (see the table above)
- Convert HTML scriptspot output to the target encoding
- Insert the HTML scriptspot output into the email
- Find and replace personalization tokens (%token%) in TXT content
- Find and replace personalization tokens (%token%) in HTML content
- 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)