Click or drag to resize
ISubscriptionServiceSubscribe Method (ContactGroupInfo, NewsletterInfo)
Subscribes contact group to given newsletter.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 12.0.0
Syntax
C#
void Subscribe(
	ContactGroupInfo contactGroup,
	NewsletterInfo newsletter
)

Parameters

contactGroup
Type: CMS.ContactManagementContactGroupInfo
ContactGroupInfo object
newsletter
Type: CMS.NewslettersNewsletterInfo
NewsletterInfo object
Exceptions
ExceptionCondition
ArgumentNullExceptionEither contactGroup or newsletter is null.
See Also