4

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.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
  • I'm a little late, but why did you need to do it without a TriggeredSend? Using TriggeredSends is how we are able to send e-mails to single subscribers. We have a Triggered Send defined in ET set up to send to All Subscribers. Then use the API to create a TriggeredSend and TriggeredSendDefinition. The TriggeredSendDefinition references the one set up on the ET server using the CustomerKey. Then you just add the single Subscriber to the TriggeredSend object's Subscribers and send it off (using the Create web service method.) – xr280xr Jun 15 '12 at 14:52

3 Answers3

4

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.

Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
1

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
}
colinbashbash
  • 996
  • 2
  • 9
  • 19