How to set subject and body template in code when using batching
cmeeren opened this issue · 3 comments
cmeeren commented
When using batching, I must specify an EmailSinkOptions
in WriteTo.Email
. Unlike the "loose" parameter overload of WriteTo.Email
, EmailSinkOptions.Body
and EmailSinkOptions.Subject
are of type ITextFormatter
. How can I set a simple string subject and body template when using batching, like I could pre-3.0?
Randactyl commented
EmailSinkOptions
sets the default subject like this:
cmeeren commented
Thanks, works great! Should be documented.
bartelink commented
Thanks, works great! Should be documented.
Yes, 'someone' should do that :P