string
LoginEmail =
"spread@reasonables.com"
;
string
APIKey =
"spread"
;
//Define recipient email
string
To =
"noclone@reasonables.com"
;
//Content Information
string
TemplateId =
"1"
;
string
Subject =
"Title"
;
string
SubstitutionVars =
"{\"[CUSTOM]\":\"Value\"}"
;
//Language Information
string
CreativeLanguage =
"en"
;
//Attachment Information
byte[]
Attachment =
File
.ReadAllBytes(
"xxxx/1234.txt"
);
string
AttachmentName =
"1234.txt"
;
//Create a SpreadWebService object and use its method.
SpreadWebService
MySpread =
new
SpreadWebService
();
string
result = MySpread.SendTemplateAttachment(LoginEmail,APIKey,To,TemplateId,
Subject,SubstitutionVars,CreativeLanguage,Attachment,AttachmentName);