I have an NLog target:
<target name="AspNetAsyncWrapperForMail" xsi:type="ASPNetBufferingWrapper">
<target name="mail" xsi:type="Mail"
subject="Error: ${callsite:includeSourcePath=False}"
smtpServer="MySMTP"
from="[email protected]"
to="[email protected]"
smtpAuthentication="None"
body="${date}${file-contents:${basedir}/error.html}"
html="true"/>
</target>
Error.html looks like this:
<div>
<b>Message</b>=${message}
</div>
How can I get NLog to parse the contents of error.html, so that the ${message} param gets rendered with NLog rules?