string
LoginEmail
= "spread@reasonables.com";
string
LoginPassword
= "spread";
string
CampaignName
=
DateTime
.Now.ToString();
//Define the from
infomation
string
From
= "myedm@edm.com";
string
FromName
= "Reasonable";
//Define
recipient email
string
To
= "noclone@reasonables.com";
string
replyTo
= "myedm@edm.com";
//Define
the email subject and body
string
Subject
= "NoClone
4 is released!";
string
Body
= "Download
NoClone 4 at http://noclone.net now!";
//Attachment infomation.
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.SendSimpleAttachment(LoginEmail,LoginPassword,CampaignName,
From,FromName,To,replyTo,Subject,Body,Attachment,AttachmentName);