0

Am I doing something wrong? It doesn't appear that the Name field is recognized.

This is the body I'm submitting via the rest api to the endpoint defined here: https://code.exacttarget.com/api/messaging-messagedefinitionsends-send.

{
  'To': 
    {
      'SubscriberKey': u'[email protected]', 
      'Name': 'Randy Shults', 
      'Address': u'[email protected]'
    }, 
   'From': 
    {
      'Name': 'CommandIQ Team', 
      'Address': '[email protected]'
    }
}

But the message headers arrive in my inbox like this (notice there is no recipient name):

Received: by ba2.mta.exacttarget.com id h9o6d2163hs0 for <[email protected]>; Tue, 15 Apr 2014 22:48:51 -0600 (envelope-from <[email protected]>)
From: "CommandIQ Team" <[email protected]>
To: <[email protected]>
Subject: Hi4
Date: Tue, 15 Apr 2014 22:48:51 -0600
List-Unsubscribe: <mailto:leave-fd531670730b5c392848-fe9315787062047c72-ff2915787363-fe9412727061017d71-ffce15@leave.s6.exacttarget.com>
MIME-Version: 1.0
x-job: 6255504_1867
1
  • I'm having someone look into this. Name appears to work for the from object, but not the to object. May be something we both are missing. Apr 21, 2014 at 10:32

1 Answer 1

0

I think it may be something really simple here - your JSON payload doesn't validate with single quotes. Try replacing with double quotes like this:

{
  "To": 
    {
      "SubscriberKey': "[email protected]", 
      "Name": "Randy Shults", 
      "Address": "[email protected]"
    }, 
   "From": 
    {
      "Name": "CommandIQ Team", 
      "Address": '[email protected]"
    }
}

You must log in to answer this question.

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