Click or drag to resize
NewsletterHelperGetEmailAddressCount Method
Returns number of recipients subscribed for specified newsletter. Takes unsubscription table in account.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 9.0.0
Syntax
C#
public static int GetEmailAddressCount(
	int newsletterId,
	int siteId
)

Parameters

newsletterId
Type: SystemInt32
Newsletter the count should be calculated for
siteId
Type: SystemInt32
Site of the newsletter

Return Value

Type: Int32
Total amount of emails subscribed to the given newsletterId without the unsubscribed ones.
See Also