mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Merge branch 'feature/6196_SupportForAttachments' into 1.10.x
This commit is contained in:
commit
67af300783
@ -54,7 +54,7 @@ namespace Orchard.Email.Services {
|
|||||||
From = Read(parameters, "From"),
|
From = Read(parameters, "From"),
|
||||||
Bcc = Read(parameters, "Bcc"),
|
Bcc = Read(parameters, "Bcc"),
|
||||||
Cc = Read(parameters, "CC"),
|
Cc = Read(parameters, "CC"),
|
||||||
Attachments = (IEnumerable<string>)parameters["Attachments"]
|
Attachments = (IEnumerable<string>)(parameters.ContainsKey("Attachments") ? parameters["Attachments"] : new List<string>())
|
||||||
};
|
};
|
||||||
|
|
||||||
if (emailMessage.Recipients.Length == 0) {
|
if (emailMessage.Recipients.Length == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user