SpreadWebServcie.AddSubscriberByEmail Method
It adds a single subscriber into
an existing subscription by his/her email.
public bool addSubscriberByEmail
(
string loginEmail,
string
password,
string subscriberEmail,
string subscription,
DoubleOptIn optInType
)
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).
|
subscriberEmail
|
String
|
The email of subscriber to be added.
|
subscription
|
String
|
The name of target subscription
to be added.
|
optInType
|
DoubleOptIn
|
Double Opt-in option.
|
Return Value
True - Confirmation is needed by subscriber. (Confirmation Letter is sent to subscriber)
False - Confirmation is not needed.
Example
string
loginName
= "spread@reasonables.com";
string
loginPassword
= "spread";
string
customerEmail
= "alan@reasonables.com";
string
targetSubscription
= "NoClone
VIP";
DoubleOptIn addOption = DoubleOptIn.Off;
bool
confirmIsNeeded;
//Create a SpreadWebService
object and use its method.
SpreadWebService MySpread = new
SpreadWebService();
confirmIsNeeded
= MySpread.addSubscriberByEmail (loginName, loginPassword, customerEmail, targetSubscription,
addOption);
See Also
SpreadWebService
Class | Spread Web Service Namespace
DoubleOptIn
Enumeration
|