Click or drag to resize
IUnsubscriptionProviderCloneUnsubscriptionForEmail Method
Clones all unsubscriptions existing for the given email and set them to newEmail. Final state after execution of the method are two same unsubscriptions, one with the original email, one with the newEmail. This method should be used whenever subscriber changes their email and already has some unsubscription saved, so it can be assumed they want to have unsubscription for the newEmail as well.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 10.0.0
Syntax
C#
void CloneUnsubscriptionForEmail(
	string email,
	string newEmail
)

Parameters

email
Type: SystemString
Email of the existing unsubscriptions
newEmail
Type: SystemString
New email set to the cloned unsubscriptions
See Also