1

How can we send a transactional email to more than one recipients using FUEL REST Services. Using the below structure i am able to send mails to a single recipient. Whats the Json structure to send a mail to more than one recipient.

POST https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/dfa5ab87-1b0f-e211-b71b-9c8e9920e9fc/send?access_token=...
Content-Type: application/json
{
"From": {
    "Address": "[email protected]",
    "Name": "Code@"
},
"To": {
    "Address": "[email protected]",
    "SubscriberKey": "[email protected]",
    "ContactAttributes": {
        "SubscriberAttributes": {
            "Region": "West",
            "City": "Indianapolis",
            "State": "IN"
        }
     }
   }
}
1
  • Let me know if you get that working or not, and mark the question answered if it works :) Commented Jan 3, 2014 at 15:07

1 Answer 1

1

You can do this using the sendBatch method. Let me know if this works for you.

messageDefinitionSends/dfa5ab87-1b0f-e211-b71b-9c8e9920e9fc/sendBatch


[
   {
      "From":{
         "Address":"[email protected]",
         "Name":"Code@"
      },
      "To":{
         "Address":"[email protected]",
         "SubscriberKey":"[email protected]",
         "ContactAttributes":{
            "SubscriberAttributes":{
               "Region":"West",
               "City":"Indianapolis",
               "State":"IN"
            }
         }
      }
   },
   {
      "From":{
         "Address":"[email protected]",
         "Name":"Code@"
      },
      "To":{
         "Address":"[email protected]",
         "SubscriberKey":"[email protected]",
         "ContactAttributes":{
            "SubscriberAttributes":{
               "Region":"East",
               "City":"Columbus",
               "State":"OH"
            }
         }
      }
   }
]
2
  • Thanks for the reply. I Tried with the above structure it work for me. can i know if we can send cc or bcc using REST. will be very helpfull if you can send us the documentation link for this. Thanks Kelly
    – Pravin
    Commented Jan 13, 2014 at 13:03
  • Go ahead and mark this answered, and start a new question for the cc but item. Thanks! Commented Jan 13, 2014 at 13:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .