0

I am trying to send an email via Triggered Send Object SOAP API. The API returns a success message "Created TriggeredSend" and everything appears to be OK as displayed in the reports (emails sent) but so far I haven't actually received any email. I tried different email addresses as receipients however none of the emails have been received (I checked the spam folders too). Can anyone tell what could be wrong? I am trying out the samples from the starter kit PHP APIstarterKit-V1.

Thanks in advance

  • Hi there - thanks for the question. Would you mind providing more code of what you are doing specifically - that will help us answer your question faster. Thanks! – Kelly J Andrews May 13 '14 at 12:23
  • Hi Here is the code that i used: pastebin.com/HtiECe5h its straight from the starter kit sample code. Thanks – Penuel May 13 '14 at 14:07
  • Also apart from above I created triggered send definition and started it before sending, but for some reason emails aren't received even though the interface and reports show emails as sent. – Penuel May 13 '14 at 14:10
  • I see the creation part, but not seeing the actual sending of the trigger. There are two parts - creation and sending. Do you have a sample of the sending portion? – Kelly J Andrews May 13 '14 at 14:25
  • Do you mean ExactTarget_TriggeredSend()? Its in the above code at line 24. If not, can you send me the link/sample to how send part is implemented? – Penuel May 13 '14 at 16:12
1

Hey a shot in the dark here. If you are doing this in your sandbox, your org's Email Deliverability may be set to a restrictive setting: No access, or System email only.

To check this go to Setup | Email Administration | Deliverability and check the Access level drop-down-menu.

I have run into problems when testing code involving Apex's send email capability. Unfortunately I am unsure how ExactTarget integrates with these settings.

[See the docs on Configuring Deliverability Settings for more details http://help.salesforce.com/apex/HTViewHelpDoc?id=emailadmin_deliverability.htm]

| improve this answer | |
0

Getting the code right is only half the battle. My problem was I did not set up the UI correctly. You also need to create a TriggeredSendDefinition in the UI, link a subscriber list to it, link your email template to it (unless you are providing the content) and optionally a DataExtension too (if you are substituting values into a template). Key pieces of the API call are the CustomerKey in the TSD in the API call needs to match the ExternalKey of the TSD definition in the UI, and you need to provide a SubscriberKey (usually email address but not necessarily) in the Subscriber as that is the key used to insert/update your subscriber (in the API call) into the subscriber list linked to the TSD in the UI. Hope this helps! - gr

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.