You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we send off an email that has been written using "Write" (not reply / forward) it can contain clickable fields for headers like to (recipient) from and subject. These can be updated by clicking or completely replaced via the "Clean Up!" button on the Composer toolbar. This clean up routine is also automatically executed when the user clicks the "Send" button. however although this is replacing the variables with the data (as expected) on the sender's side, the recipient receives a version of the email that was saved before the button was clicked.
Clicking Send:
So SmartTemplates makes it look like the variables have been resolved (replaced) but they really haven't and were sent off unchanged. The expected behavior is to replace everything automatically, then save the draft of the modified (resolved) email and then asending off the modified version.
The text was updated successfully, but these errors were encountered:
Here is a first test version which uses the API event compose.onBeforeSend to trigger replacements. It seems to work reasonably well, except if you are also using the Cardbook Add-on and address lookup which seems to trigger the send event early (email is sent before ST gets a chance to replace everything)
Here is a more reliable version, this uses an experiment API which calls the a function that calls SmartTemplate4.Util.cleanupDeferredFields() asynchronously and doesn't return until everything is replaced. The previous versions used a windows event handler that didn't properly wait for the function.
All my test worked correctly and replaced quite a large number of fields successfully before sending off the email/
When we send off an email that has been written using "Write" (not reply / forward) it can contain clickable fields for headers like to (recipient) from and subject. These can be updated by clicking or completely replaced via the "Clean Up!" button on the Composer toolbar. This clean up routine is also automatically executed when the user clicks the "Send" button. however although this is replacing the variables with the data (as expected) on the sender's side, the recipient receives a version of the email that was saved before the button was clicked.
Clicking Send:
So SmartTemplates makes it look like the variables have been resolved (replaced) but they really haven't and were sent off unchanged. The expected behavior is to replace everything automatically, then save the draft of the modified (resolved) email and then asending off the modified version.
The text was updated successfully, but these errors were encountered: