This script is called after an email is send during a report run, whether it was successful or not. You can use this to do things such as log information about the email.
Any value (Stonefield Query ignores the return value).
Here's an example that logs the email to a text file named EmailLog.txt.
lparameters toApplication as SQApplication, toReport as Report, ; tlEmailSent strtofile('Email: ' + ; iif(tlEmailSent, 'sent', 'failed to send: ' + toReport.ErrorMessage) + ; ', file: ' + toReport.OutputFileName + ; ' , recipients: ' + toReport.Recipients, ; 'EmailLog.txt', .T.)
© Stonefield Software Inc., 1996-2019 • Updated: 08/15/19
Comment or report problem with topic