Send email to one ExactTarget subscriber without TriggeredSend

There is an ExactTarget email service with a web services API.

There are samples (in php though) for instantly sending email to the entire list or for a single subscriber through an initiated action.

It’s quite difficult to get the documentation, and I couldn’t find an explanation of how to send an email to one subscriber instantly without any initiating actions.

Any help or advice would be wonderful.

+4
source share
3 answers

The only workaround that I see is creating a list, adding a separate subscriber and sending email to this list than deleting the list.

After all, it is a subscription service, not sendmail.

+4
source

Yes. This can be done using triggered dispatch.

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 } 
+1
source

Source: https://habr.com/ru/post/1307159/


All Articles