SpreadWebServcie.Send Method

 

It send email one to one

Note: The contact will be automatically added to the contact list named "Auto_ + Current Date". This function allows duplicate sending, so the contact list may contains duplicate email. Don't use this contact list in other campaigns, if you want to avoid duplicate sending.

public String Send (

string LoginEmail,

string Password,

string From,

string FromName,

string To,

string Subject,

string Body

)

Parameters

Parameter

Type

Description

LoginEmail

String

The login email of your Spread account.

Password

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

From

String

The email address of sender.

FromName

String

The name of sender.

To

String

The email address of recipient.

Subject

String

The subject of the campaign.

Body

String

The content of the campaign.

Return Value

String  represent the result of send status .

Example

string LoginEmail = "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 body

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.send(LoginEmail,LoginPassword,From,FromName,To,Subject,Body);

See Also

SpreadWebService Class | Spread Web Service Namespace

Campaign Class