Questions tagged [mailkit]

MailKit is a cross-platform .NET mail-client library optimized for mobile.

MailKit is a cross-platform .NET mail-client library optimized for mobile, it is built on top of MimeKit.

785 questions
3
votes
0 answers

ASP.NET Core RC2 SMTP Client

The new ASP.NET Core framework does not include the System.Net.Mail namespace from the full .NET framework. The RC1 version did have support for MailKit & MimeKit, so using that sending emails was possible, but with the recently released RC2…
larzz11
  • 1,022
  • 2
  • 11
  • 24
3
votes
2 answers

AuthenticationException when tryign to connect to mail server using MailKit

I am using MailKit to try and send email though an exchange server via SMTP but when I try to connect I get the following error: An exception of type 'System.Security.Authentication.AuthenticationException' occurred in MailKit.dll but was not…
Matthew Verstraete
  • 6,335
  • 22
  • 67
  • 123
3
votes
2 answers

How to obtain the WYSIWYG body of an email message using MimeKit

I was using a library called EAgetmail to retrieve the body of a specified email and it was working well, however I am now using Mailkit. The problem is with EAgetmail the equivalent of message.body returns the body as the user sees it in email…
non
  • 78
  • 1
  • 6
3
votes
1 answer

MailKit smtp copy emails to exchange server sent folder

I'm using the Mailkit framework to send (SMTP) and retrieve (IMAP) emails from an exchange server and that works fine. Yet, I have the problem that emails that are sent with SMTP don't show up in the sent folder on the server (and therefore not in…
Sinsay
  • 33
  • 1
  • 5
3
votes
1 answer

Mailkit: Sending Drafts

Im trying to find a method in mailkit that executes the command "Execute append" in IMAP, in C# i would do it like: MailMessage mg = null; using (ImapClient cl = new ImapClient("imap.gmail.com")) { cl.Port = 993; cl.Ssl = true; …
BrunoMartinsPro
  • 1,646
  • 1
  • 24
  • 48
3
votes
2 answers

In MailKit, how do I get the message's raw representation?

I am downloading messages over IMAP using MailFolder.Fetch and then getting the relevant body parts with MailFolder.GetBodyPart. Is it possible to get the raw representation of the MIME message in addition to the processed information? Code: var…
Ziv
  • 2,755
  • 5
  • 30
  • 42
3
votes
1 answer

Quote original message in a reply using mailkit

There is any way to quote the original message in a reply? e.g.: Hi, I'm fine. Sent at 16/07/15 from: user@mail.com to: Me Hei Jefh, how are you? I know that I can 'attach' the original message in a new message, but I really want to quote the…
Jéf Bueno
  • 425
  • 1
  • 5
  • 23
3
votes
1 answer

C# Mailkit delivery status notification

I am creating an email management system using MailKit. I need to track delivery but all I can find is the DeliveryStatusNotification enum, but nowhere to apply it. What I have so far is: var message = new MimeMessage(); DeliveryStatusNotification…
Riaan
  • 33
  • 1
  • 4
3
votes
1 answer

Getting notification on inbox changes using Mailkit

What is the best way to be notified instant when mails or changes happens to the INBOX of my mailbox using MailKit?? I have been playing around with following events: ImapClient.Inbox.CountChanged; This seems to work best when using Exchange…
grmihel
  • 784
  • 3
  • 15
  • 40
3
votes
1 answer

MailKit/MimeKit SMTP connect error

While trying to send an e-mail using MailKit and MimeKit, I received the following error: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of…
milo2011
  • 339
  • 1
  • 9
  • 25
3
votes
3 answers

How can I log into gmail IMAP using MailKit

I am trying to use MailKit (http://jstedfast.github.io/MailKit/docs/index.html) to log into Gmail using oAuth. I am able to log into Google API using a refreshed AuthToken, but when I try to use the refreshed token in MailKit, I get an error…
Jeff
  • 387
  • 1
  • 3
  • 11
2
votes
0 answers

Outlook OAuth2 SMTP is not authenticating with mailkit

I'm currently working on one specific app that should send e-mail via outlook and using mailkit. App is logging in via oauth2 and imap authentication is OK, but not smtp. I'm getting this exception: 535: 5.7.3 Authentication…
2
votes
1 answer

How can I send an email with MimeKit in C#

Hi everyone I'm trying to send an email using the MimeKit but I'm trying to attach a .pdf file I have some problems: This is how I'm trying to send it: private bool EnviarMail(string file, string from, string to, string subject, string content,…
user19111040
2
votes
1 answer

How long can a Mailkit SMTPClient connection stay open

I use mailkit for my ASP.Net Core application and create a SMTPClient object which I then connect to Office365 and authenticate my user with a username and password. How long can this connection be open until it expires or needs to be…
Irish Redneck
  • 983
  • 7
  • 32
2
votes
1 answer

going crazy with Yahoo and sending emails from in mail client with MailKit

I'm going crazy with Yahoo and sending emails from an mail client with MailKit which manage tons of email but I'm cannot send to Yahoo only. I tried to follow not only the MailKit documentation…