FluentEmail icon indicating copy to clipboard operation
FluentEmail copied to clipboard

System.MissingMethodException when using MailKit 3.0.0

Open mm-rpodstawa opened this issue 2 years ago • 8 comments

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

mm-rpodstawa avatar Dec 19 '21 08:12 mm-rpodstawa

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)

mortenn avatar Dec 30 '21 08:12 mortenn

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 avatar Feb 04 '22 04:02 dotnetshadow

Is anyone else experiencing this issue?

dotnetshadow avatar Jun 18 '22 02:06 dotnetshadow

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.

zaha avatar Jun 21 '22 08:06 zaha

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

cchance27 avatar Jul 22 '22 21:07 cchance27

There are only really two solutions to this issue;

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

mortenn avatar Jul 23 '22 06:07 mortenn

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

Jogai avatar Jul 27 '22 21:07 Jogai

please fixed it. :)

neozhu avatar Feb 13 '23 11:02 neozhu