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

Sending PEC email with mailkit dotnet library (c# code)

Is it possible to send a pec email (italian legal email) with the MailKit library? I did not find any examples on the net even on the site related to the library in question. Can someone help me? Thank you.
-1
votes
1 answer

SMTP c# MailKit smtp.Authenticate fails

I am trying to send an e-mail using c# MailKit SMTP (code below). It connects successfully (with Connect method) and then it fails on Authenticate method call with an error " Username and Password not accepted.". I know the user name and password…
Janusz Dalecki
  • 197
  • 1
  • 10
-1
votes
1 answer

Netcore- User Registration Method Not Found Error

The following error is returned during user registration. Frankly I think the problem is caused by netcore.mailkit. Or there may be a problem on the AutoMapper side. Because this is a code structure that I use often. The project is being developed…
-1
votes
2 answers

How can I get an incoming email's message in C#?

The code I am using at the moment is try { //using MailKit.Net.Pop3; string pathLog = System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData); string fileNameLog = Path.Combine(pathLog, "pop3.txt"); …
-1
votes
1 answer

how to redirect user to sign-in page and after successful sign-in how to capture the Token in C#

I need your help in one of my project requirement. My requirement is to send mail from our .net Application. So when user want to send mail then first the user should be redirected to the microsoft sign-in page (e.g…
Sunil M
  • 1
  • 2
-1
votes
1 answer

c# MimeKit mail not sent without error. System.Net.Mail works fine

I made a console application to test MimeKit, it's executed without errors but emails never arrives. i usae same data with System.Net.Mail and all works fine. What can be the problem? MimeKit code: var email = new MimeMessage(); …
gt.guybrush
  • 1,320
  • 3
  • 19
  • 48
-1
votes
1 answer

Check is a message was 'seen' yet?

What's the optimal way to check if a particular MimeMessage was 'seen' yet. Meaning: how to check if the '\Seen' flag is set for a particular MimeMessage/UnqiueId? I found the methods to set/change that flag, but now how to check if the flag is set…
-1
votes
1 answer

Is there a way to receive all wild card emails programatically?

For example, I have a domain named foo.com. I created the following email addresses: sales@foo.com hr@foo.com I need to listen to all email addresses created from the foo.com domain. Also, I am the owner of the foo.com domain. Can I create an Imap…
Khalil
  • 1,047
  • 4
  • 17
  • 34
-1
votes
1 answer

Mailkit: Get time of read emails

I save email files as .eml by Mailkit and want to show user when did read or open this email. is it possible by eml file or must save read date separately?
OMID
  • 2,469
  • 4
  • 16
  • 26
-1
votes
1 answer

.net core parallel email sending

What I would like to achieve is that I have a .net web application which sends email using the general smtp client instance. My problem is that the creation of client which authenticates and connects to the server is really slow and I would like to…
Sándor Jankovics
  • 738
  • 1
  • 6
  • 19
-1
votes
1 answer

is there a good parser for rfc822 formatted email address

usually, these emails come in the form name. I am trying to use MailBoxAddress.Parse to take the name and email address. I am getting too many errors here as it seems that people put their name in any format they want. For example, the following…
Samuel
  • 1,949
  • 4
  • 18
  • 30
-1
votes
1 answer

MailboxAddress can't be created using variables (C#)

I am creating an android application using Xamarin on Visual Studio 2017. I am trying to run an automated email feature that sends emails when a user registers an account with my application. I am using the NuGet package MailKit for this. var…
broliverparker
  • 217
  • 2
  • 15
-1
votes
1 answer

Sending HTML from external file with MailKit

In .Net Core, we can send HTML email using bodyBuilder.HtmlBody = @"
anything
" It's there a way to load the
content from external .html file, something like bodyBuilder.HtmlBody = (load msg.html)
Hasan A Yousef
  • 22,789
  • 24
  • 132
  • 203
-1
votes
1 answer

How to get answered mail for Exchange?

When I Pull Mail, how do I know whether a mail is Answered for Exchange, IndexBox.Search(SearchQuery.Answered) and IndexBox.Fetch(uid,MessageSummaryItems.Flags) can not get Replied to Mail?
-1
votes
1 answer

How get UniqueIdRange on MailKit?

To be able to get all the emails in a conversation, in order to obtain the e-mail in order, and so display them in the same way gmail displays. already thanks for listening. I tried this Iseen = box.Search(SearchQuery.NotSeen); UniqueIdRange…
1 2 3
52
53