Merge branch 'feature/6196_SupportForAttachments' into 1.10.x

# Conflicts:
#	src/Orchard.Web/Modules/Orchard.Email/Services/SmtpMessageChannel.cs
This commit is contained in:
HermesSbicego-Laser 2016-10-21 18:40:21 +02:00
commit bf2201c2a9

View File

@ -124,6 +124,8 @@ namespace Orchard.Email.Services {
foreach (var attachmentPath in emailMessage.Attachments) {
if (File.Exists(attachmentPath)) {
mailMessage.Attachments.Add(new Attachment(attachmentPath));
} else {
throw new FileNotFoundException(T("One or more attachments not found.").Text);
}
}
_smtpClientField.Value.Send(mailMessage);