Closed synercoder closed 4 years ago
That was my (reversed) thinking why I removed the To & CC params from the ViewModel. To have just 1 place where you put them.
Would it be a reasonable separation to set the destination on the SendMail
method, while setting the content within the viewmodel?
Trying to keep the cognitive load as low as possible...
Sounds like a good plan
Only way to set the To, From, Cc & Bcc are now using the MailDispatcher instead of also setting them in the MimeMessage. This makes the To parameter now required.
And the From parameter is optional, as long is the DefaultFromAddress is set. Otherwise an ArgumentException is thrown.