I'm using the following AMPscript to fire a triggered send from a landingpage, but nothing happens – there's actually no Error message when executing the script.
Any ideas?
VAR @emailaddr, @ts, @tsDef, @ts_subkey, @ts_sub
SET @emailaddr = "[email protected]"
SET @ts = CreateObject("TriggeredSend")
SET @tsDef = CreateObject("TriggeredSendDefinition")
SET @ts_subkey = @emailaddr
SetObjectProperty(@tsDef, "CustomerKey", 187)
SetObjectProperty(@ts, "TriggeredSendDefinition", @tsDef)
SET @ts_sub = CreateObject("Subscriber")
SetObjectProperty(@ts_sub, "EmailAddress", @emailaddr)
SetObjectProperty(@ts_sub, "SubscriberKey", @emailaddr)
AddObjectArrayItem(@ts, "Subscribers", @ts_sub)