send email to single ExactTarget subscriber without TriggeredSend
-
27-09-2019 - |
Question
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.
Solution
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.
OTHER TIPS
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
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow