Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.MissingMethodException when using MailKit 3.0.0 #296

Open
mm-rpodstawa opened this issue Dec 19, 2021 · 8 comments
Open

System.MissingMethodException when using MailKit 3.0.0 #296

mm-rpodstawa opened this issue Dec 19, 2021 · 8 comments

Comments

@mm-rpodstawa
Copy link

I have upgraded MailKit to v3.0.0 and I when I send email get this exception:

System.MissingMethodException: 'Method not found: 'System.Threading.Tasks.Task MailKit.MailTransport.SendAsync(MimeKit.MimeMessage, System.Threading.CancellationToken, MailKit.ITransferProgress)'.'

When I back to MailKit v2.15.0, everything works good again

@mortenn
Copy link

mortenn commented Dec 30, 2021

Related exception I am seeing:

System.MissingMethodException: Method not found: 'Void MailKit.MailTransport.Send(MimeKit.MimeMessage, System.Threading.CancellationToken, MailKit.ITransferProgress)'.
   at FluentEmail.MailKitSmtp.MailKitSender.Send(IFluentEmail email, Nullable`1 token)
   at FluentEmail.Core.Email.Send(Nullable`1 token)

@dotnetshadow
Copy link

dotnetshadow commented Feb 4, 2022

Any update on this issue?

@lukencode I think some methods might have been removed
https://github.com/jstedfast/MailKit/blob/master/ReleaseNotes.md#mailkit-300-2021-12-11

MailKit 3.0.0 (2021-12-11)
Removed APIs marked as [Obsolete] in 2.x.

Similar issue documented here:
MailKit's SmtpClient.SendAsync() method changed its API signature between 2.x and 3.0. It used to return Task, now it returns Task<string>.
https://stackoverflow.com/questions/70886057/serilog-writeto-email-failing

@dotnetshadow
Copy link

Is anyone else experiencing this issue?

@zaha
Copy link

zaha commented Jun 21, 2022

Is anyone else experiencing this issue?

Yes, same issue here.
I'm also waiting for this to be resolved, but there seems to be little activity in this project, which is why I'm considering dropping FluentEmail and using MailKit directly. Despite liking the simplicity and syntax, I need a mail library that is well maintained and supported.

@cchance27
Copy link

Running into this same issue, any word on a workaround besides backing down to mailkit 2.15?

@mortenn
Copy link

mortenn commented Jul 23, 2022

There are only really two solutions to this issue;

  1. Wait for a new release
  2. Clone the repo and build it yourself

@Jogai
Copy link

Jogai commented Jul 27, 2022

@lukencode Can you elaborate on the status of the project?

@neozhu
Copy link

neozhu commented Feb 13, 2023

please fixed it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants