mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 20:09:09 +08:00
Re-applying change from 6ea2b8c7f4
(Log error when Recipient emailMessage.Recipients is null)
This commit is contained in:
parent
52b40538ce
commit
0e1129ec74
@ -57,7 +57,7 @@ namespace Orchard.Email.Services {
|
||||
Cc = Read(parameters, "CC")
|
||||
};
|
||||
|
||||
if (emailMessage.Recipients.Length == 0) {
|
||||
if (string.IsNullOrWhiteSpace(emailMessage.Recipients)) {
|
||||
Logger.Error("Email message doesn't have any recipient");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user