You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to call this from c#.net, we are developing a windows service from which we have to call the above and send emails. I have the API key and JSON request, how to send the request.
Please provide some samples.
The text was updated successfully, but these errors were encountered:
This is a duplicate of issue #32 which is also unanswered. I've emailed support about this. If I get any info, I'll create a pull request to add this to the README.
publicvoidSendEmails(stringemailTemplateId,IEnumerable<UserDTO>users){vartransactional= Authenticate.ByClientApiKey(_apiKey);// This is the unique identifier for this smart emailvarsmartEmailId=new Guid(emailTemplateId);// build up the emailforeach(var user in users){varbuilder= transactional.MessageBuilder();
builder.To(user.EmailAddress).Data(newDictionary<string,object>{{"firstName", user.FirstName },{"lastName", user.LastName }});// Send the email
builder.Send(smartEmailId);}}
I didn't find examples on how to use this API https://api.createsend.com/api/v3.1/transactional/smartEmail/{:smartEmailID}/send
I have to call this from c#.net, we are developing a windows service from which we have to call the above and send emails. I have the API key and JSON request, how to send the request.
Please provide some samples.
The text was updated successfully, but these errors were encountered: