Click or drag to resize
EmailTemplateInfoProviderGetEmailTemplateInfo Method (String, Int32)

Note: This API is now obsolete.

Gets the e-mail template.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use IEmailTemplateInfoProvider.Get(string, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - EmailTemplateInfo.Provider.")]
public static EmailTemplateInfo GetEmailTemplateInfo(
	string templateName,
	int siteId
)

Parameters

templateName
Type: SystemString
Template code name
siteId
Type: SystemInt32
Template site ID

Return Value

Type: EmailTemplateInfo
See Also