문제

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 instantly 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
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top