Click or drag to resize
IContactProviderGetContactForSubscribing Method (String, String, String)
Gets contact associated with email. When contact doesn't exist, contact is created and inserted to database.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 10.0.0
Syntax
C#
ContactInfo GetContactForSubscribing(
	string email,
	string firstName = null,
	string lastName = null
)

Parameters

email
Type: SystemString
Email used to get or update contact.
firstName (Optional)
Type: SystemString
First name used to update contact.
lastName (Optional)
Type: SystemString
Last name used to update contact.

Return Value

Type: ContactInfo
Retrieved contact.
See Also