Skip to content

Commit bf2201c

Browse files
Merge branch 'feature/6196_SupportForAttachments' into 1.10.x
# Conflicts: # src/Orchard.Web/Modules/Orchard.Email/Services/SmtpMessageChannel.cs
2 parents 67af300 + 580b79c commit bf2201c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Orchard.Web/Modules/Orchard.Email/Services/SmtpMessageChannel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ public void Process(IDictionary<string, object> parameters) {
124124
foreach (var attachmentPath in emailMessage.Attachments) {
125125
if (File.Exists(attachmentPath)) {
126126
mailMessage.Attachments.Add(new Attachment(attachmentPath));
127+
} else {
128+
throw new FileNotFoundException(T("One or more attachments not found.").Text);
127129
}
128130
}
129131
_smtpClientField.Value.Send(mailMessage);

0 commit comments

Comments
 (0)