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. Performs check against the Unsubscription table to determine, whether the contact is unsubscripted from the newsletter or not.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 9.0.0
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