Click or drag to resize
EmailSenderSendEmailWithTemplateText Method (String, EmailMessage, EmailTemplateInfo, MacroResolver, Boolean)
Sends an e-mail based on the template text and dynamically merged values.

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 8.2.23
Syntax
C#
public static void SendEmailWithTemplateText(
	string siteName,
	EmailMessage message,
	EmailTemplateInfo template,
	MacroResolver resolver,
	bool sendImmediately
)

Parameters

siteName
Type: SystemString
Site name
message
Type: CMS.EmailEngineEmailMessage
EmailMessage object without body
template
Type: CMS.EmailEngineEmailTemplateInfo
Template that will be used for e-mail body (plain) text and/or subject
resolver
Type: CMS.MacroEngineMacroResolver
Macro resolver which will be used to resolve the e-mail body (plain) text and subject
sendImmediately
Type: SystemBoolean
Send e-mail directly
See Also