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 createCampaign
(
string loginEmail,
string
password,
string
from,
string
fromName,
string
_to,
string
subject,
string
content
)
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.
|
content
|
String
|
The content of the campaign.
|
Return Value
String
represent the result of send status .
Example
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);
See Also
SpreadWebService
Class | Spread Web Service Namespace
Campaign
Class