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

Syntax
Public Shared Function SubscribeForNews(emailAddress As String) As ClientSubscribeForNewsResponseCode

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

Return value
Returns status of operation via ClientSubscribeForNewsResponseCode enum.

Requirements
File: ItpLibraryNetWrapper.vb
Namespace: ItpLibraryNetClient;

Example
Private Sub btnSubscribeForNews_Click(sender As Object, e As EventArgs) Handles btnSubscribeForNews.Click
    Dim emailAddress As String = tbEmailForNews.Text.Trim()
    Dim responseCode As ClientSubscribeForNewsResponseCode = ItpLibraryNetWrapper.SubscribeForNews(emailAddress)
    MessageBox.Show(responseCode.ToString(), Text)
 
    tbEmailForNews.Text = String.Empty
End Sub
Copyright 2006 - 2024 by IntelliProtector - Software Protection and Licensing Services