Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
100 views

I am trying to use MailKit to access an email account and retrieve mail messages for processing. I have installed the nuget packages for MailKit and MimeKit. I just installed Studio 2022 before ...
Jerry Welliver's user avatar
0 votes
0 answers
65 views

I'm using Hangfire in an ASP.NET Core application to send emails using MailKit. When I enqueue a background job that sends email, it fails with a timeout and returns: A connection attempt failed ...
bristivojevic's user avatar
0 votes
0 answers
73 views

We are migrating from System.Net.Mail to MailKit. If we need to send emails every 30 seconds (or may be more frequently) using SMTPClient (connecting to Microsoft Exchange online), is it advisable to ...
Nilanka d's user avatar
1 vote
1 answer
98 views

When I try to reach the text body of the email, it cannot load the whole text completely. This is my code: string text = message.TextBody; And the type of message is MimeMessage. In some emails from ...
Bahman's user avatar
  • 29
0 votes
0 answers
64 views

context: trying to start up mailkit for integration tests. this works fine on my local machine, but breaks in the pipeline when im starting up the mail server with same parameters for port and ...
lbpoundz's user avatar
1 vote
1 answer
267 views

I have installed the MimeKit and the MailKit in my PC using: Install-Package -Name 'MimeKit' -Source "https://www.nuget.org/api/v2" -SkipDependencies Install-Package -Name 'MailKit' -Source &...
Davide Rigato's user avatar
0 votes
0 answers
64 views

I am tryilng to save attachments from emails using MailKit. I have emails with attachments, which are not seen by MailKit. When these messages are opened in Outlook I see that they have attachments. I ...
KiNest's user avatar
  • 65
0 votes
2 answers
170 views

I developed a C# application that uses MimeKit to send emails through SES. The following code demonstrates this Note: My server only allows the port - 25. public virtual bool Send(MimeMail ...
brendan davton's user avatar
0 votes
0 answers
176 views

I am encountering the error "535: 5.7.3 Authentication unsuccessful [PN3PR01CA0013.INDPRD01.PROD.OUTLOOK.COM]" while using the MailKit library to send an email with Outlook's modern ...
Bhavesh Vyas's user avatar
0 votes
2 answers
121 views

In my Blazor server application, I want to use OAuth2 authentication instead of basic auth. Using Mailkit and .NET 8.0. private async Task<string> CreateSmtpClientAndSendMailAsync() { ...
bbWebDev's user avatar
0 votes
2 answers
87 views

I am using MimeKit to retrieve emails from an Office 365 Exchange server. I'm using the Graph API to do this, so the code to retrieve and create the MimeMessage object is simply: var mimeContentStream ...
pcbulldozer's user avatar
-1 votes
1 answer
133 views

I created some code in C# to read the email from a folder on my (local/NAS) IMAP server. Code is not finished, but in the end I would like to have a list of all the mailsubjects. The response from ...
Luuk's user avatar
  • 15.4k
0 votes
1 answer
351 views

I am using mailKit 4.10.0 to make a SMTPClient. This client will call a custom SMTPServer using StartTls. The SMTPServer is using a self-signed certificate. Here is the code: using (var client = new ...
Don Chambers's user avatar
  • 4,375
0 votes
2 answers
233 views

I have an SMTPClient, using MailKit, that sends a message with the follow code. using (var client = new SmtpClient()) { client.ServerCertificateValidationCallback = (s, c, h, e) => true; ...
Don Chambers's user avatar
  • 4,375
-1 votes
2 answers
112 views

Beforehand i apologize for any mistakes, as English is not my first language. I'm creating a razor component library to be implemented in an existent .NET 7 Blazor Server application. Basically a ...
RAAPereira's user avatar
1 vote
1 answer
135 views

When I answer the first (i.e. oldest) email in a thread of mails (between two gmail accounts) using MailKit .NET the recipient recieves the mail in a new, empty thread. Doing this through the Gmail ...
Telectrix's user avatar
1 vote
1 answer
356 views

I was having an issue, which others have also had, when using MailKit 4.8.0 whereby when attempting to create an instance of MimeMessage, I got a FileLoadException complaining that the version of ...
Richard Sands's user avatar
0 votes
1 answer
276 views

My MailKit code: var eMail = new MimeMessage(); eMail.From.Add( new MailboxAddress( sender, sender ) ); eMail.To.Add( new MailboxAddress( recipient, recipient ) ); ...
Powerslave's user avatar
0 votes
0 answers
122 views

I have a question. I had this code that used to work perfectly for sending emails using MailKit. However, I recently started getting this error message: 535 5.7.139 Authentication unsuccessful, ...
Eiber Torres Galvan's user avatar
0 votes
1 answer
201 views

Scenario ASP.NET Core Web API is being called from a web app. The Web API being tasked with obtaining external users's grant Imap access to continuously read their email utilising MailKit. This ...
Avrohom's user avatar
  • 730
0 votes
1 answer
32 views

Mail Kit package connect method throw operation timeout exception but EASendMail package send email successfully with same properties in .Net app. You can see written c# code under below. var host = &...
mertk's user avatar
  • 3
0 votes
1 answer
47 views

I used this code to download the PDF file from attachment. And when I connecting to gmail IMAP it's working great. But when I try to connect another IMAP server DecodeToAsync just can't decode it to ...
HK1308's user avatar
  • 1
0 votes
1 answer
183 views

Using Mailkits (superb) IMAP Api's I need to get the full thread of a message, but when reading the Inbox label I only get the Reply. Here's my small test case... Initial message sent from Instigators ...
tinmac's user avatar
  • 2,612
0 votes
1 answer
90 views

I am working on a SMTP sender application and I already went through many options but I still can't find solution. Problem I have a test message where in the emil message, I have some TO and CC ...
Rafiq39's user avatar
-1 votes
2 answers
348 views

Hello I'm trying to generate send a email for yahoo using Mailkit. Here's the code below: var message = new MimeMessage(); message.From.Add(new MailboxAddress("", "[email protected]&...
userone's user avatar
  • 331
0 votes
1 answer
704 views

I'm using Mailkit to try and read a free MS outlook email account via IMAP. Now that App Passwords no longer work with outlook apparently we need to use Entra Id. I'm following this Mailkit guide. I ...
tinmac's user avatar
  • 2,612
1 vote
1 answer
365 views

I'm using mailkit/mimekit to create a .eml file. I'm then using ProcessStartInfo to open the .eml file in the default windows application. I'm doing it this way so that the user can add an attachment ...
Steve Hoyer's user avatar
1 vote
1 answer
83 views

This is log from fetch: var items = client.Inbox.Fetch(new[] { uid }, MessageSummaryItems.BodyStructure | MessageSummaryItems.UniqueId); foreach (var item in items) { var attachments = item....
ivan's user avatar
  • 13
0 votes
1 answer
2k views

This is an interesting one. In my ASP.NET (.NET 8) app with Identity authentication, I have an implementation of IEmailSender<AppUser> (we'll call it IdentityEmailService). The ...
Ross Brasseaux's user avatar
2 votes
0 answers
661 views

I want to send email via my Microsoft email account. Therefor I use MailKit and OAuth2. The problem is, every time, I try to authenticate myself to send emails I get the authentication error: ...
Stefan's user avatar
  • 21
0 votes
1 answer
260 views

Using MailKit, I want to send a verification code to rescue the password in my application. I've copied working code that I've previously used: private async void RescuePassword(object sender, ...
new csharp'er's user avatar
0 votes
1 answer
87 views

I'm new to MailKit and I see that it has a number of dependencies named "System.xxx" that are in the NuGet package. (vesrion 4.8.0 - I'm using .net 4.7) Should I include these in the ...
Phil's user avatar
  • 5
1 vote
0 answers
230 views

I'm trying to implement OAuth Authentication in a VB.NET project using MailKit for an Outlook FREE account. Not using Office 365 neither Microsoft Exchange. Just a free and personal Outlook account. I ...
Erich's user avatar
  • 11
0 votes
0 answers
51 views

I am currently attempting to send an email to another domain. I would like to add in/attach a transport header for the email I am sending. Is there any default way I can set a transport header in ...
adrien there's user avatar
1 vote
0 answers
116 views

I am trying to download a draft (via IMAP) and send it (via SMTP) to people via MailKit. Anyway, the problem is not sending or the process in general, but more a conceptual one: The Envelope.From in ...
rklec's user avatar
  • 353
0 votes
1 answer
177 views

If you use some MailKit method and have some concurrent access on the API, you will get an InvalidOperationException exception like this: The ImapClient is currently busy processing a command in ...
rklec's user avatar
  • 353
0 votes
2 answers
338 views

I am using ImapClient by MailKit and trying to move a message from folder A to folder B after reading the message, but the message is not moved and still exists in folder A. What is the problem? Here ...
Bahman's user avatar
  • 29
0 votes
2 answers
174 views

I use MailKit for creating a folder. This is simple, I can e.g. call CreateFolderAsync (if I want to async way) on the parent folder. public async Task<IMailFolder> GetOrCreateFolder(string ...
rklec's user avatar
  • 353
0 votes
1 answer
150 views

When I am trying to send a mail using MailKit that has a html body with embedded images, the images are showing in the email body but also as attachments. I don't want attachments, just as mail body ...
Muheeb's user avatar
  • 91
0 votes
0 answers
167 views

I'm currently integrating SMTP services in my application. I must state that I don't have any experience with Azure. My customers have different email providers and I allow them to configure their own ...
MSantos's user avatar
  • 47
-1 votes
2 answers
1k views

I have an e-commerce web application consisting of Blazor WASM for the client side, Blazor Server for administration, and Web API for integration with the database and services. After order completion,...
raysefo's user avatar
  • 483
0 votes
1 answer
111 views

Im currently working with MailKit and Mimemessage in sending emails with "plain","html" and "rtf" bodies. Although I am having an issue with sending an email with an rtf ...
adrien there's user avatar
0 votes
1 answer
157 views

I created a class library project to send emails using MimeKit and MailKit. Project Target framework - .NET Framework 4.7.2 MimeKit version - 4.6.0 MailKit version - 4.6.0 public class MailProcess ...
brendan davton's user avatar
0 votes
1 answer
58 views

MailKit C# MyExampledomain:DummyPerson <[email protected]> results in empty "From" address I am using Mailkit library (C#) to retrieve emails via IMAP for an ...
Sukhbir Kalsi's user avatar
0 votes
1 answer
191 views

So basically I would want to send a email with an attachment greater than 25MB minimum, I have tried sending it as multiple attachments (breaking down the data into chunks), but that gives out an ...
adrien there's user avatar
0 votes
0 answers
85 views

I'm trying to send emails directly through my Xamarin Android application using MailKit. I've installed the latest versions of MailKit and MimeKit through NuGet package manager, but when I run the ...
OttoRocket's user avatar
1 vote
1 answer
4k views

Since Microsoft announced it is removing basic auth smtp support, I am trying to find a different way of sending emails from my application. My applications are backend applications so therefore it ...
Tom el Safadi's user avatar
2 votes
0 answers
98 views

I am building an email automation application to login to a mailbox, extract text and sort the emails etc. I am trying to use the MailKit library but running into some issues logging into the inbox ...
pfreeman's user avatar
3 votes
0 answers
1k views

I want to send an email using SMTP[in c#]. And based on what I understood, I wrote such this code. using System; using System.Net; using System.Net.Mail; class Program { ...
Matin Baki's user avatar
-1 votes
1 answer
534 views

I am new using Mailkit in c# and having trouble with connecting with IMAP to an office365 business account. I receive an error message that the authentication failed. I like to create an application ...
pinky10's user avatar

1
2 3 4 5
18