This code gets no syntax errors, but is not working. It runs on "after record is added", but this code seems to lock up the form and the record is not saved. No error messages.
** Send email with new data ****
' do not forget to setup email parameters like From, SMTP server etc
' on 'Security->User login settings' dialog
if values("Status")= "Scheduled" then
Dim tmpDict, msg, msg2
msg ="You have entered a new " & values("status") & " entry for " & values("CustID") & vbcrlf
set tmpDict = CreateObject("Scripting.Dictionary")
tmpDict("to")=values("DriverEmail") ' tmpDict("to")=Dict("DriverEmail")
tmpDict("subject")="NEW SCHEDULE"
tmpDict("body")=msg
set ret=runner_mail(tmpDict)
if not ret("mailed") then
response.write ret("message")
end if
End If