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
2
votes
1 answer

.NET Core MailKit SMTP AUTH LOGIN as local linux account

I use MailKit library to send mail from ASP.NET Core application. I also tried to avoid MailKit library and use TcpClient directly to send commands to SMTP server (to ensure that library is not a problem). Postfix SMTP server is located on Linux…
Pocke
  • 23
  • 5
2
votes
1 answer

Connecting to gmail with Mailkit ImapClient using TLS not SSL

I'm trying to poll a gmail account in C# code. I am using the Mailkit libraries (https://github.com/jstedfast/MailKit). I can connect successfully when I tell the client to use SSL: using (var client = new ImapClient ()) { client.Connect…
2
votes
3 answers

How get email sent status in mailkit with asp.net core

I'm implementing email server in asp.net core 2.0 with mailkit. About my scenario, I have to send email and need to return feedback with the email sent status.I have implemented email send part and it's working fine. I know try catch is a one…
Isanka Thalagala
  • 1,625
  • 3
  • 16
  • 32
2
votes
0 answers

mailkit: how to get email alias when it's an Office365 account

I have an alias for my O365 account -- alias@mycompany.com, which gets forwarded to the real account -- realaccount@mycompany.com. If I send an email to this 0365 alias from a non O365 account (say gmail), MailKit (pop or imap .net core client)…
Cindy Hoskins
  • 111
  • 2
  • 5
2
votes
1 answer

SparkPost SMTP relay with StartTLS suddenly gives error "Authentication failed because the remote party has closed the transport stream."

I have a (long) running webapplication written in VB on the ASP.NET 4.0 framework. We have been using SparkPost to send e-mails for a while, but since a few days (not sure about the exact date), the e-mail functionality has stopped working and…
Daniël Tulp
  • 1,745
  • 2
  • 22
  • 51
2
votes
2 answers

MailKit: Mail client is showing message as received at time of move and not retaining original flags

I'm working writing a script to migrate emails from one account to another. I'm having two issues. The messages are moving over, but the mail client is showing their received date as the date/time it was moved (in the list of messages view), not…
S_E
  • 23
  • 4
2
votes
0 answers

Limit MailKit SmtpClient to specific IP address or NIC

If MailKit SmtpClient is used on a system with more than one public IP address, is there a way of telling it what IP address to use or limit it to using a certain NIC?
kamiwa
  • 31
  • 3
2
votes
1 answer

Mailkit authenticate attempt results in GMail SMTP error

I am using following code to send mail through google authorization using accessToken, but i am getting error "AuthenticationInvalidCredentials: 5.7.8 Username and Password not accepted. Learn more at 5.7.8 …
Naveen
  • 25
  • 3
2
votes
1 answer

Mailkit with IMAP - concurrent access to same mail item by multiple clients

I would like to create an application using mailkit that will run on multiple servers, each targeting the same Exchange/IMAP mailbox looking for new mail, saving down its attachments and then deleting the mail. There are many code samples to get me…
2
votes
1 answer

Html not rendering for MailKit email

I'm trying to send transaction emails from my website using the MailKit library but I can't make the html render an anchor tag. In fact I'm not sure that any of the html is being rendered. Any ideas what's wrong? My code is below. var message =…
Jessie Cryer
  • 159
  • 2
  • 9
2
votes
1 answer

How to get MimeMessage from IMessageSummary?

I'm using MailKit to get a list of full IMessageSummaries like this: var allMessages = remoteFolder.Fetch(remoteIndexList, MessageSummaryItems.Full | MessageSummaryItems.Flags | MessageSummaryItems.UniqueId | MessageSummaryItems.BodyStructure); I'm…
Nevca
  • 194
  • 1
  • 1
  • 9
2
votes
1 answer

How to get mail sent successfully with MailKit IMap?

I'd like to know if my outbox mail has been sent successfully.. var client = new ImapClient(); .... var folders = client.GetFolders(client.PersonalNamespaces[0]); var folder = client.GetFolder("已发送");//get sent mail floder in Chinese var…
Jie Tang
  • 21
  • 3
2
votes
1 answer

SocketException: No such host is known

In my ASP.NET Core 1.1.1 app developed on VS2017 Ver 15.3.3, I'm using Account confirmation and password recovery in ASP.NET Core and MailKit to implement the above article's functionality but I'm getting the following error: Note: The error…
nam
  • 21,967
  • 37
  • 158
  • 332
2
votes
1 answer

Dot net core console application uses Mailkit does not send emails when deployed as azure web job

I am using " Mailkit " to send emails from a dot net core console application (using smtp). It works when i run the application in my local machine and I receive emails. However, when i deployed as an azure webjob, It does not send emails. I could…
blogs4t
  • 2,329
  • 5
  • 20
  • 33
2
votes
0 answers

IMAP status on not existing folder

I am getting this IMAP response. Notice the folders INBOX.INBOX.ooo and INBOX.INBOX.dfgdfg. INBOX.INBOX folder doesn't exists and it is just a placeholder (NonExistent) folder. C: A00000096 STATUS INBOX (UIDVALIDITY HIGHESTMODSEQ) S: * STATUS INBOX…
ekalchev
  • 762
  • 7
  • 24