EmailSenderSendEmailWithTemplateText Method |
Sends an e-mail based on the template text and dynamically merged values.
Namespace: CMS.EmailEngineAssembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 12.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
Remarks
The template body or subject is not used if the body or subject of the message is not empty.
See Also