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

mimkit and mailkit can't refer in windowsphone project of xamarin.form

mailkit can't refer in windowsphone project of xamarin.form. is mailkit not support windowsphone? how can i do? thanks Install-Package MailKit 正在尝试解析依赖项“MimeKit (≥ 1.2.11.0)”。 正在安装“MailKit 1.2.11.1”。 已成功安装“MailKit 1.2.11.1”。 正在将“MailKit 1.2.11.1”添加到…
Roy Yu
  • 1
0
votes
1 answer

No body returned from MailKit fetch

I started working with MailKit and have run into an issue where no body is returned for any of the fetched messages. I've tried both a fetch and a search, without luck. My code is below: Private strErrMsg As String Private objClient As…
user680891
  • 177
  • 1
  • 2
  • 12
0
votes
1 answer

MailKit MessagesArrived event not fired for GMail

Can't get the event MessagesArrived and CountChanged to fire for GMail.. When new emails arrived at the inbox those events just won't fired. Is this not supported for GMail? or is it my wrong implementation? Your inputs are much appreciated.
Kagawa
  • 1,319
  • 2
  • 21
  • 33
0
votes
1 answer

Opening Other Email Accounts using MailKit

I'm trying to access to an IMAP account (Not My Default) using MailKit (created by jstedfast) I can access my exchange email account using Imap fine and loop through the folders. What I really need to do is access other email accounts I have rights…
Willy K
  • 1
  • 2
0
votes
1 answer

MailKit Imap Get Mail Size

I use mailkit library to read imap mails. I want to get mail with it's size. In Pop3 I can read mail size with; clientPop.GetMessageSize("messageId"); In Imap,how can I do that?
fena coder
  • 217
  • 4
  • 17
0
votes
1 answer

Content encoding using MimeKit/MailKit

We are encountering some encoding issues, specially when using 8bit as content transfer encoding. First of all, can anyone please tell me how 8bit encoded value of a-umlaut looks like? What is best in practice to handle encoding? I tried to use the…
grmihel
  • 784
  • 3
  • 15
  • 40
0
votes
1 answer

MailKit.Net.Smtp.SmtpCommandException: 5.4.6 Hop count exceeded - possible mail loop

I'm getting this exception when forwarding a mail between two mailboxes. MailKit.Net.Smtp.SmtpCommandException: 5.4.6 Hop count exceeded - possible mail loop While forwarding email continuously between mailbox using Outlook, this doesn't seems to…
grmihel
  • 784
  • 3
  • 15
  • 40
0
votes
1 answer

MailKit IMailFolder.Close throws exception

I'm having a method using MailKit that will open a folder in your mailbox. If the acceslevel is lower than the provided argument, then it will close the folder, and then open the folder in the right accesslevel. Something like this: public void…
grmihel
  • 784
  • 3
  • 15
  • 40
0
votes
1 answer

System.Net.Mail alternative without message size increase

We are using the System.Net.Mail to send email messages as text with attachments. The attachments are Excel and Powerpoint files. The content types are set to the MIME types before sending the email. A test done with three emails proved that the…
Ranjith Venkatesh
  • 1,322
  • 3
  • 20
  • 57
0
votes
1 answer

How To Add Text Footer Using MimeKit

I have attempted to add a footer to an email message using MimeKit, but the added footer appears as an attachment on the email, rather than just text appended to the message. multipart.Add(new TextPart("text") { Text = "Hello World" }); What is the…
Fenton
  • 241,084
  • 71
  • 387
  • 401
0
votes
1 answer

Retrieve the list of UIDs in an Imapfolder with MailKit?

I want to send the command 'UID FETCH ALL'. This gives me all the uids for this folder. I can't find any predefined method for this command. I want to retrieve the headers of the emails in an imapfolder and save them to a local datastore with their…
0
votes
1 answer

Persisting MailKit Client Across Several Functions

I apologize in advance if this is an 'obvious' question. I am especially new to MailKit and new to C# in general. To open a new IMAP connection, I am using the following code, taken straight from MailKit's introductory GitHub notes: using (var…
MX26
  • 15
  • 4
0
votes
2 answers

How to get message body without downloading attachment

I am using IMAP4 client called: MailKit. It works great, but I have a problem on getting body of message without downloading the attachments. I want to show the mail's body text and also what attachments there are, but only if a user clicks on the…
omer schleifer
  • 3,897
  • 5
  • 31
  • 42
-1
votes
1 answer

ASP.NET Core - How to resolve SmtpClient does not contain a definition for Connect

In ASP.NET Core 7 Web API application I installed NETCore.MailKit-2.1.0 package for e-mail notification. Then I have this method: using MailKit.Net.Smtp; using MimeKit; private void Send(MimeMessage mailMessage) { using (var client = new…
Ayobamilaye
  • 1,099
  • 1
  • 17
  • 46
-1
votes
2 answers

how make invisible the password with Mailkit in Authenticate if the SMTP server requires authentication?

I understand that SmtpClient doesn't support many modern protocols so the recommendation is use MailKit, but with SmtpClient using System.Net.Mail the password was not required. With Mailkit I must Authanticate with password in my code. using (var…
Claudiu
  • 9
  • 3