Yes, That's what i do in the code.
here is my code
var message = new EmailMessage
{
EmailFormat = EmailFormatEnum.Both,
From = template.TemplateFrom,
CcRecipients = template.TemplateCc,
BccRecipients = template.TemplateBcc,
Recipients = emailModel.EmailAddress,
Subject = macroResolver.ResolveMacros(template.TemplateSubject),
PlainTextBody = macroResolver.ResolveMacros(template.TemplatePlainText),
Body = macroResolver.ResolveMacros(template.TemplateText)
};
return message;