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

Can MailKit be used for "Contact Me" form?

I'm new to web programming and I am making a website using ASP.NET Core. I am trying to create a standard "contact me" page where the user enters in a name, email, subject and message. ASP.NET Core has yet to have System.Net.Mail, so I can't use…
ecain
  • 1,282
  • 5
  • 23
  • 54
0
votes
1 answer

Interface Between Google Sign-in and MailKit

I am writing an app in WPF (Windows 10 desktop) that should include a component where the user can download message headers and messages from G-Mail. I am trying to use MailKit to interface with G-Mail via a secure connection (without having to turn…
Wally Walrus
  • 253
  • 1
  • 2
  • 7
0
votes
2 answers

Move email to trash POP3 using MailKit

How would I move an email to the trash or delete it when connecting with POP3. using (var client = new Pop3Client()) { client.Connect("pop-mail.outlook.com", 995, true); …
jLynx
  • 1,111
  • 3
  • 20
  • 36
0
votes
1 answer

mailkit Add imap folder not visible

I'm trying to add folder to inbox as follows: var _client = new ImapClient(); _client.Connect(hostName, portNumber, useSsl); _client.Authenticate(username, password); _client.Inbox.Open(FolderAccess.ReadWrite); _client.Inbox.Create("Name",…
Szybki
  • 1,083
  • 14
  • 29
0
votes
1 answer

Struggling to Authenticate Outlook access in MailKit

The code examples supplied with MailKit suggest that accessing an IMAP mailbox requires code similar to this... var at = "<>"; using (var client = new ImapClient()) { client.Connect("imap-mail.outlook.com", 993,…
Stuart Hemming
  • 1,553
  • 2
  • 21
  • 44
0
votes
1 answer

Error trying to Connect to GMail with MailKit

I've got the following code... var credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = "<< MY CLIENT ID>>", ClientSecret = "<>" }, new[] {…
Stuart Hemming
  • 1,553
  • 2
  • 21
  • 44
0
votes
1 answer

Issue with sending mails using Mailkit (c#)

I am new to Mailkit/Mimekit and in the process of migrating from Easymail. The code below gives an error message saying Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly…
0
votes
1 answer

Is there any way to retrieve labels or folder ID in IMAP MailKit

I am using MailKit IMAP to retrieve messages from Email Server(GMail). I have to cached these messages into my local system so that user can access messages Offline.Currently I am getting all folders or labels that Email Server has.But I do not get…
Neil
  • 3
  • 2
0
votes
1 answer

How to download multiple attachments per message with MailKit?

I've looked at a lot of the other questions on stackoverflow about this, but I'm still confused. I want to download the attachments of emails- I was successfully able to do this, but only if the email had ONE attachment; when an email has more than…
0
votes
1 answer

How can i check for new emails and if there are new emails to get them using MailKit?

Now i'm just getting all the messages in a backgroundworker dowork event: private int numberofallmessages = 0; private int countMsg = 0; private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { List
Daniel Lipman
  • 41
  • 1
  • 8
0
votes
2 answers

How can i parse html message body using MailKit?

I used OpenPop until now but now change to MailKit and this two properties: FindFirstPlainTextVersion() and FindFirstHtmlVersion() not exist with MailKit. The variable allMessages is not OpenPop but now it's List type. lvnf is…
Daniel Lipman
  • 41
  • 1
  • 8
0
votes
1 answer

receive new unread mail every time in c# application from mailinbox

I want to achieve same functionality as like this one : Notify C# Client, when SMTP Server receive a new Email This is working fine. That method "NewMessageReceived" call successfully on every new mail receive. But problem is that i can't fetch…
Jainish Jariwala
  • 308
  • 4
  • 14
0
votes
1 answer

Mimekit, IMapClient get attachment information without downloading whole message

I am using the following code to obtain subject information. Is it possible to know if the email contains attachments, and perhaps more specifically excel spreadsheets (xls/xlsx) without downloading the entire…
Jim
  • 14,952
  • 15
  • 80
  • 167
0
votes
2 answers

Sending email in MVC6?

I have tried referencing system.net.mail in various frameworks: framework: "net451" dependency: "System.Net.Mail": "1.0.0-rc2-00001" error: does not support framework framework: "net46" dependency: "System.Net.Mail": "1.0.0-rc2-00001" error: does…
Sasha Palmer
  • 153
  • 1
  • 9
0
votes
1 answer

DKIM using MIMEKIT

Im trying to DKIM sign all my emails using MIMEKIT and it works flawless for email body of smaller lenght but when content/size of email body increases., DKIM fails. Im generating the body using "BodyBuilder". The following are my doubts in…
Raju
  • 207
  • 4
  • 12