开发者

send email to single ExactTarget subscriber without TriggeredSend

There is an email service ExactTarget with web service API.

There are samples (in php though) for sending email to whole list instantly, or to single subscriber by triggered action.

It's pretty hard to get in it's documentation, and I couldn't find explanation how to send email to a single subscriber instant开发者_运维百科ly without having some triggering actions.

Any help or advice will be great.


The only workaround I see is create a list, add single subscriber and send email to that list, than delete list.

In the end it's a subscription service, not a sendmail.


Yes. This is possible to do with a triggered send.

private void SendEmail(string triggeredName, Subscriber subscriber) {
    CreateResult[] results;
    string requestId;
    string status;

    var t = new TriggeredSendDefinition { CustomerKey = triggeredName };
    t.RefreshContent = true;
    t.RefreshContentSpecified = true;
    var s = new TriggeredSend { TriggeredSendDefinition = t, Subscribers = new[] { subscriber } };
    CreateResult[] r = _client.Create(new CreateOptions(), new APIObject[] { s }, out requestId, out status);
    var r2 = (TriggeredSendCreateResult)r[0];
    //add your own try/catch, etc
}


None of these help? http://wiki.memberlandingpages.com/API_References/Web_Service_Guide/_Technical_Articles/.NET_Code_Samples

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜