I need to send the new record data in an email and redirect the user to the view page after the new records is added. This code won't work. Can you help? Thanks.
'** Redirect to another page ****
Response.Redirect "subscription_table_view.asp?editid1="&keys("salesid")
End Sub
'** Send email with new data ****
' do not forget to setup email parameters like From, SMTP server etc
' on 'Security->User login settings' dialog
Dim dkeys, tmpDict, msg, n
msg =""
dkeys = values.keys
For n = 0 To values.Count-1
if not IsBinaryType(GetFieldType(dkeys(n),"")) then
msg = msg & dkeys(n) & " : " & values(dkeys(n)) & vbcrlf
end if
Next
set tmpDict = CreateObject("Scripting.Dictionary")
tmpDict("to")="--rbegin--bob@website.com--rend--"
tmpDict("subject")="SUBSCRIPTION TO NEW MAPS"
tmpDict("body")=msg
set ret=runner_mail(tmpDict)
if not ret("mailed") then
response.write ret("message")
end if
' Place event code here.
' Use "Add Action" button to add code snippets.