SpreadWebServcie.Send2 Method

 

指定邮件活动的名称一对一的发送邮件.

注:每日最多设定20个不同的Campaign 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