Click or drag to resize
EmailTemplateProviderGetEmailTemplate Method (String, String)

Note: This API is now obsolete.

Returns e-mail template given by template name and site name (or just template name for global templates).

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.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 GetEmailTemplate(
	string templateName,
	string siteName
)

Parameters

templateName
Type: SystemString
Template name
siteName
Type: SystemString
Site name or null for global templates

Return Value

Type: EmailTemplateInfo
See Also