You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurred while sending an email: 'Method not found: 'MimeKit.MimeEntity MimeKit.AttachmentCollection.Add(System.String, System.IO.Stream)'.'
#11245
Closed
ericrrichards opened this issue
Feb 22, 2022
· 4 comments
I have another library that I am using that depends on MailKit/MimeKit 3.1.0, and if I include that library, the OrchardCore.Cms.Email feature stops working. All attempts to send emails through the ISmtpService generate this error:
An error occurred while sending an email: 'Method not found: 'MimeKit.MimeEntity MimeKit.AttachmentCollection.Add(System.String, System.IO.Stream)'.'
To Reproduce
Steps to reproduce the behavior:
Include MailKit 3.1.0 and MimeKit 3.1.0 in an OrchardCMS project
I am using other non-orchard code that has a dependency on newer versions
of MailKit.
This is the simplest reproduction that exhibits the same behavior.
Describe the bug
I have another library that I am using that depends on MailKit/MimeKit 3.1.0, and if I include that library, the OrchardCore.Cms.Email feature stops working. All attempts to send emails through the ISmtpService generate this error:
An error occurred while sending an email: 'Method not found: 'MimeKit.MimeEntity MimeKit.AttachmentCollection.Add(System.String, System.IO.Stream)'.'
To Reproduce
Steps to reproduce the behavior:
Include MailKit 3.1.0 and MimeKit 3.1.0 in an OrchardCMS project
Enable and configure the Email feature
Go to 'https://localhost/Admin/Email/Index'
Click on 'Test Settings'
Fill out the form to send a basic email with recipient, subject and body
See error
Remove references to MailKit 3.1.0 and MimeKit 3.1.0
Rerun steps 3,4,5
Mail is sent successfully
The text was updated successfully, but these errors were encountered: