mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fix moderator notification
`Orchard.Email.Services.SmtpMessageChannel.Process` expects a string for Recipients, not a string array. This results in an *Object reference not set to an instance of an object* exception and the moderator(s) do not get notified. Fixes #4928.
This commit is contained in:
@@ -117,7 +117,7 @@ namespace Orchard.Users.Services {
|
||||
var parameters = new Dictionary<string, object> {
|
||||
{"Subject", T("New account").Text},
|
||||
{"Body", _shapeDisplay.Display(template)},
|
||||
{"Recipients", new [] { recipient.Email }}
|
||||
{"Recipients", recipient.Email }
|
||||
};
|
||||
|
||||
_messageService.Send("Email", parameters);
|
||||
|
Reference in New Issue
Block a user