SpreadWebServcie.Send2 Method

 

指定郵件活動的名稱一對一的發送郵件.

注:每日最多設定20個不同的Campagin Name.
聯系人將自動加入“Auto_+郵件名“的聯系人列表,此函數允許重複發送,所以對應名單可能會出現重複聯系人.請勿在其他郵件使用該聯系人列表,以防止郵件重複發送.

public String Send2 (

string LoginEmail,

string Password,

string CampaignName,

string From,

string FromName,

string To,

string Subject,

string Body

)

參數

參數

類型

描述

LoginEmail

String

Spread賬號的郵件地址

Password

String

Spread賬號的密碼或者 API Key.

CampaignName

String

被發送郵件的名稱

From

String

發送者的郵件地址

FromName

String

發送者的名稱.

To

String

收件者的郵箱地址.

Subject

String

郵件的主題.

Body

String

郵件内容.

返回結果

String  表示郵件的發送狀態.

例子

string LoginName = "spread@reasonables.com";

string LoginPassword = "spread";

 

string CampaignName = "Noclone campaign";

 

 //Define the from infomation

string From = "myedm@edm.com";

string FromName = "Reasonable";

 

//Define recipient email

string To = "noclone@reasonables.com"; 

 

//Define the email subject and content

string Subject = "NoClone 4 is released!"; 

string Body = "Download NoClone 4 at http://noclone.net now!";  

 

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

string result = MySpread.send2(LoginName,LoginPassword,CampaignName,From,FromName,To,Subject,Body);

參見

SpreadWebService Class | Spread Web Service Namespace

Subscriber Class

DoubleOptIn Enumeration