3

I'm attempting to send messages using the REST endpoint:
https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:[my_send_key]/send


I've set a "Name" property of the "To" element:

{
    "To": {
        "Address": "[email protected]",
        "SubscriberKey": "[email protected]",
        "Name": "Recipient Name One",
        "ContactAttributes": {"SubscriberAttributes": {
            "CustomSubject": "Some Custom Subject - SoapUI 1",
            "CustomBody": "<p>Some Custom Body Content - SoapUI 1<\/p>"
        }}
    },
    "From": {
        "Address": "[email protected]",
        "Name": "Sender Name"
    }
}

The messages are delivered, but the recipient name is not set.

From: "Sender Name" <[email protected]>
To: <[email protected]>
Subject: Some Custom Subject - SoapUI 1



I've sent the Address pre-formatted with the name, but those messages are never received.

{
    "To": {
        "Address": "\"Recipient Name Two\" <[email protected]>",
        "SubscriberKey": "[email protected]",
        "ContactAttributes": {"SubscriberAttributes": {
            "CustomSubject": "Some Custom Subject - SoapUI 2",
            "CustomBody": "<p>Some Custom Body Content - SoapUI 2<\/p>"
        }}
    },
    "From": {
        "Address": "[email protected]",
        "Name": "Sender Name"
    }
}



I've also tried to set the name in a contact attribute.

{
    "To": {
        "Address": "[email protected]",
        "SubscriberKey": "[email protected]",
        "ContactAttributes": {"SubscriberAttributes": {
            "Name": "Recipient Name Three",
            "CustomSubject": "Some Custom Subject - SoapUI 3",
            "CustomBody": "<p>Some Custom Body Content - SoapUI 3<\/p>"
        }}
    },
    "From": {
        "Address": "[email protected]",
        "Name": "Sender Name"
    }
}

Those messages are delivered, but the name is still not set.

From: "Sender Name" <[email protected]>
To: <[email protected]>
Subject: Some Custom Subject - SoapUI 3


What I'm trying to get is:

From: "Sender Name" <[email protected]>
To: "Recipient Name Three" <[email protected]>
Subject: Some Custom Subject - SoapUI 3



Is this possible with the REST API?

Thanks.

2
  • 1
    As far as I know, ExactTarget never populates a a recipient name in the SMTP header. So I am not sure if this a limitation of the API, or the system itself.
    – mobo
    Commented Jan 14, 2015 at 23:38
  • Looking into if this is possible - but so far I come up empty. Commented Jan 15, 2015 at 16:45

1 Answer 1

0

I don't think you're able to include the name on the recipient. Reading through this documentation, I don't see an option to specify name on the TO field.

You must log in to answer this question.

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