EmailSenderSendEmailWithTemplateText Method (String, EmailMessage, EmailTemplateInfo, MacroResolver, Boolean) |
Sends an e-mail based on the template text and dynamically merged values.
Namespace: CMS.EmailEngineAssembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 9.0.0
Syntax 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