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
5
votes
2 answers

Check if imap folder exist using MailKit

I'm trying to move mails to another folder but i can´t find a simple way to check if target folder exists, i presumed that the given folder path is a root folder, i try with this: public void MoveMessages(Config accountInfo, List uids, string …
lorjuelag
  • 53
  • 1
  • 7
5
votes
1 answer

Mailkit: What is the UniqueID

after some googling without results about this I'll ask my questions: What is the Mailkit.UniqueId? In the metadata of the struct is simply reads Represents a unique identifier for messages in a MailKit.IMailFolder 1) Is it unique only for let's…
penCsharpener
  • 409
  • 7
  • 15
5
votes
2 answers

Sending email via C# Mailkit / Mimekit but server certificate error comes in

0 Code in Visual Studio 2015 1 I am using Mailkit latest version (1.18.1.1) for sending an email from my own email server. 2 The email server is having a self signed certificate, which is not TRUSTED. 3 I have added both of the following lines in…
Fuzed Mass
  • 414
  • 1
  • 3
  • 10
5
votes
0 answers

What additional tools do i need with docker to send emails via an smtp server

I am writing a .net core 1.1 console application. The goal is to host this as a scheduled job running inside a docker container. The console app will use an smtp server and will send emails. Simple as that. However, I am not successful while…
blogs4t
  • 2,329
  • 5
  • 20
  • 33
5
votes
1 answer

MailKit: How to download all attachments locally from a MimeMessage

I have looked at other examples online, but I am unable to figure out how to download and store ALL the attachments from a MimeMessage object. I did look into the WriteTo(), but I could not get it to work. Also wondering whether attachments will be…
user5736662
5
votes
1 answer

how modify message body - Mimekit Message

i'm using mimekit for receive and send mail for my project. I'm sending received mails with some modifications (to & from parts). And now i need to modify in body section. I'll replace specific word with asterix chars. Specific text different for…
Ercument Eskar
  • 132
  • 3
  • 15
5
votes
1 answer

Mimekit/mailkit download message body?

I have been making my own mail client recently and added a receive option, I used mimekit and mailkit as plugins and was able to download most of my mails with a reader that is supposed to show content(right now it shows subject, to, from, date) The…
user265889
  • 667
  • 1
  • 10
  • 24
5
votes
1 answer

MailKit Imap Get only messageId

The title sums it up. I need to get all the MessageId properties from an Imap folder without downloading the entire message. ... IMailFolder inbox = imapClient.Inbox; SearchQuery query = SearchQuery.All; IList idsList =…
4
votes
1 answer

Authentication failed exception with MailKit OAuth2.0

I'm using the following code to get an access token and connect to the mail folder: var confidentialClientApplicationBuilder = ConfidentialClientApplicationBuilder.Create(clientId).WithClientSecret(clientSecret).WithTenantId(tenantId).Build(); var…
TheLethalCoder
  • 6,668
  • 6
  • 34
  • 69
4
votes
0 answers

Open "Mail App Extension" preferences panel with Swift in macOS

Mail App Extensions were announced by Apple at WWDC21. The implementation is very similar to Safari App Extensions. With the method showPreferencesForExtension(withIdentifier:completionHandler:) of the SFSafariApplication class it is possible to…
Suboptimierer
  • 554
  • 4
  • 11
4
votes
1 answer

Office 365 XOAUTH2 for SMTP on native clients 535 5.7.3 Authentication unsuccessful

I try to send mails via the smtp of office 365. I setup an app registration for native client in azure and set the permission SMTP.Send. But when I connect I've been able to get a token, but the sending doesn't work. In all others articles I read,…
4
votes
1 answer

Mailkit Can't authenticate with O365 oAuth2 account

I tried to authenticate on a O365 application I created on the Azure portal and it doesn't work as expected. The following code works well but it's using a login/password and it's not recommended by Microsoft. (found here…
Fabrice
  • 921
  • 1
  • 6
  • 11
4
votes
1 answer

How to Install Mailkit in Powershell

I seem to be running in circles.. I tried Install-Package -Name 'MailKit' -Source 'nuget.org' but it was unable to find package source nuget.org I tried a local installation from a download, which just kept asking for dependant packages, such as…
Derek Martin
  • 91
  • 1
  • 4
4
votes
3 answers

Read Office365 emails from Exchange Server using .Net C# IMAP client

I am writing a Windows Console App to read emails from a specially setup email account on Office365. The account is all setup and we are able to receive emails from Outlook. The Console App is is will run on a schedule from a remote server and…
rarpal
  • 175
  • 1
  • 13
4
votes
2 answers

Is it possible to get raw HTML from Razor/Blazor components?

I'd like to set up a "mailer/newsletter" using MailKit. My site stack is based off of Blazor web assembly and uses .Razor components. I'm wondering if there is a way to consume a razor component I've written to output HTML into the MimeMessage…
Taylor C. White
  • 836
  • 1
  • 12
  • 30