below config was my nlog setting, this setting send mail is OK .
<target name="mail" xsi:type="Mail"
smtpServer="SMTP SERVER"
smtpPort="25"
smtpAuthentication="None"
enableSsl="false"
from="email address"
to="email address"
html="true"
encoding="UTF-8"
addNewLines="true"
replaceNewlineWithBrTagInHtml ="true"
subject="SYSTEM MESSAGE:${machinename} 於 ${shortdate} ${time} create ${level} message "
header="========================================================================="
body="${newline}
time:${longdate} ${newline}${newline}
Log level:${level:uppercase=true} ${newline}${newline}
Logger:${logger} ${newline}${newline}
Source:${callsite:className=true} ${newline}${newline}
Exception:${exception:format=type} ${newline}${newline}
Error message:${message} ${newline}${newline}"
footer="========================================================================="
/>
</targets>
<rules>
<logger name="*" minlevel="Fatal" writeTo="mail" />
</rules>
but I want to send colorful mail. How to setting configure ?