SpreadWebServcie.AddSubscriberByEmail Method

 

添加一個單一的訂閱者通過他/她的電子郵件.

public bool addSubscriberByEmail (

string loginEmail,

string password,

string subscriberEmail,

string subscription,

DoubleOptIn optInType

)

參數

參數

類型

描述

loginEmail

String

Spread帳號的郵箱地址

password

String

Spread帳號的密碼或者API Key.

subscriberEmail

String

被添加訂閱者的郵件地址

subscription

String

添加到聯繫人列表的名稱

optInType

DoubleOptIn

Double Opt-in option.

返回結果

True - 需要用戶的確認(確認信函發送給訂閱者).

False - 不需要確認.

例子

string loginName = "spread@reasonables.com";

string loginPassword = "spread";

string customerEmail = "alan@reasonables.com";

string targetSubscription = "NoClone VIP";

DoubleOptIn addOption = DoubleOptIn.Off;

bool confirmIsNeeded;

 

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

confirmIsNeeded = MySpread.addSubscriberByEmail (loginName, loginPassword, customerEmail, targetSubscription, addOption);

參見

SpreadWebService Class | Spread Web Service Namespace

DoubleOptIn Enumeration