NewsletterHelperGetEmailAddressCount Method |
Returns number of recipients subscribed for specified newsletter. Takes unsubscription table in account.
Namespace: CMS.NewslettersAssembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 9.0.0
Syntax 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:
Int32Total amount of emails subscribed to the given
newsletterId without the unsubscribed ones.
See Also