SubscribeForNews
This function saves e-mail address for newsletters. The client will receive confirmation e-mail to approve his subscription.

Syntax
public ClientSubscribeForNewsResponseCode SubscribeForNews(string emailAddress)

Parameters
string emailAddress - recipient's e-mail address.

Return value
Returns status of operation via ClientSubscribeForNewsResponseCode enum.

Requirements
File: ItpLibraryNetWrapper.cs
Namespace: ItpLibraryNetClient;

Example
private void btnSubscribeForNews_Click(object sender, EventArgs e)
{
    string emailAddress = tbEmailForNews.Text.Trim();
    ClientSubscribeForNewsResponseCode responseCode = ItpLibraryNetWrapper.SubscribeForNews(emailAddress);
    MessageBox.Show(responseCode.ToString(), Text);
 
    tbEmailForNews.Text = string.Empty;
}
Copyright 2006 - 2024 by IntelliProtector - Software Protection and Licensing Services