Click or drag to resize
EmailTemplateNewsletterInfoProviderAddNewsletterToTemplate Method

Note: This API is now obsolete.

Sets relationship between specified server and site.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IEmailTemplateNewsletterInfoProvider.Add(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - EmailTemplateNewsletterInfo.Provider.")]
public static void AddNewsletterToTemplate(
	int templateId,
	int newsletterId
)

Parameters

templateId
Type: SystemInt32
Template ID
newsletterId
Type: SystemInt32
Newsletter ID
See Also