Can an email be sent to a Group via the Fuel SDK? If not, how can it be done with another API or SDK?


The way I am sending email using FuelSDK php, I have created DataExtension then using this (search for SendEmailToDataExtension sample code)

$response = $myclient->SendEmailToDataExtension($EmailIDForSendDefinition, $SendableDataExtensionCustomerKey,$SendClassificationCustomerKey);

Where $EmailIDForSendDefinition: is your email ID which you can get by getting email properties. $SendableDataExtensionCustomerKey: is you DataExtension Key again you can get this by looking into properties of Data Extension.

$SendClassificationCustomerKey: This is you Send Classification e:g DefaultTransactional

To send email to List have same procedure and function used for this in fuelsdk is "SendEmailToList".

Using one of these code, instead of listid/DataExtension id provide group Id and and send email.



If you are using the PHP version of the SDK, check out the example for sending to a List at: https://github.com/ExactTarget/FuelSDK-Ruby/blob/master/samples/sample-email.senddefinition.rb

A group is basically just a special type of List, it has an ID which can be used interchangeably with a standard List ID.

  • That looks like a link to the Ruby SDK. Feb 27 '14 at 13:15
  • 1
    Thanks Mac, that's great to know. How do you find the ID for the group though? With no access to the Groups via the SDK, it still feels like a dead-end.
    – Mark
    Feb 28 '14 at 19:58
  • By the way, I did try getting all Lists, but my group wasn't included in them.
    – Mark
    Feb 28 '14 at 20:46
  • I also tried using an ID I found via the web interface, but the get() against ET_List() failed to return anything but an empty stub object.
    – Mark
    Feb 28 '14 at 21:18

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.