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