Click or drag to resize
OnlineMarketingTransformationFunctionsSubscribedToNewsletter Method
Checks whether contact is subscribed to the given newsletter. Check is made based on the contact's email address. If there is a subscriber with the contact's email subscribed to the newsletter, it means contact is subscribed. If subscriber with contact's email is not subscribed, contact's activities are checked. If contact has subscription activity, he is subscribed.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax
C#
public static bool SubscribedToNewsletter(
	Object contact,
	string newsletterName,
	int lastXDays
)

Parameters

contact
Type: SystemObject
Contact whose email should be checked
newsletterName
Type: SystemString
Newsletter name
lastXDays
Type: SystemInt32
Constraint for last X days (if zero or negative value is given, no constraint is applied)

Return Value

Type: Boolean
See Also