SpreadWebServcie.Send Method

 

一对一的发送邮件.

注:联系人将自动加入“Auto_+当前时间“的联系人列表,此函数允许重复发送,所以对应名单可能会出现重复联系人.请勿在其他邮件使用该联系人列表,以防止邮件重复发送.

public String createCampaign (

string loginEmail,

string password,

string from,

string fromName,

string _to,

string subject,

string content

)

参数

参数

类型

描述

loginEmail

String

Spread账号的登录邮箱.

password

String

Spread账号的密码或者 API Key.

from

String

发送者的邮箱地址.

fromName

String

发送者的名称.

_to

String

收件者的邮箱地址.

subject

String

邮件的主题.

content

String

邮件的内容.

返回结果

String 表示邮件发送的结果.

例子

string loginName = "spread@reasonables.com";

string loginPassword = "spread";

 

 //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 content = "Download NoClone 4 at http://noclone.net now!";  

 

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

string result = MySpread.send(loginName,loginPassword,from,fromName,_to,subject,content);

参见

SpreadWebService Class | Spread Web Service Namespace

Campaign Class