Questions tagged [mimekit]

A cross-platform .NET MIME creation and parser library with support for S/MIME, PGP, TNEF and Unix mbox spools.

A cross-platform .NET MIME creation and parser library with support for S/MIME, PGP, TNEF and Unix mbox spools.

MimeKit is a C# library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME), as defined by numerous IETF specifications.

303 questions
0
votes
1 answer

Gpg4win - allowing app pool access to public keys

I have implemented OpenPGP encryption on a c# console application that sends out a PGP encrypted email, using MimeKit and Gpg4win. I have the console app running fine, but when I implement this for a Website running in IIS the public keys are not…
user806982
  • 135
  • 4
  • 16
0
votes
2 answers

The type initializer for 'MimeKit.ParserOptions' threw an exception

I am testing using an existing System.Net.Mail.MailMessage with MimeKit's support for direct casting to a MimeMessage in addition to using MimeKit's DkimSigner and MailKit's Smtp client. I am getting "The type initializer for 'MimeKit.ParserOptions'…
eric1825
  • 405
  • 3
  • 13
0
votes
0 answers

Problems with Mailkit IMAP - Authentication with string is not possible

I have a strange problem with my IMAP authentication here. I cannot authenticate if I´m trying to use string variables. I really need to type in my account and my password which does really make no sense to me. THIS DOES NOT WORK! using (var…
0
votes
1 answer

How to select sharednamespace

Using IMAP - We have many shared mailboxes under the shared 'user' namespace with a '.' delimiter. I'm trying to write some software that will migrate these shared mailboxes to Exchange server. I'm trying to open a specific mailbox/folder within…
user219396
  • 57
  • 1
  • 7
0
votes
1 answer

Mailkit Fetch "Unexpected token in IMAP response: [qstring: "Multipart message"]"

I'm getting an ImapProtocolException with a message: "Unexpected token in IMAP response: [qstring: "Multipart message"]" when issuing zInbox.Fetch(uids, MailKit.MessageSummaryItems.UniqueId Or MailKit.MessageSummaryItems.BodyStructure Or…
jzero
  • 61
  • 8
0
votes
1 answer

MailKit/MimeKit.NET - Remove quoted messages within a replying email (from Outlook)

I want to strip the entire past mails to get the original mail body without any quotations using MailKit/MimeKit. Getting the mails (via IMAP) is already done and working fine. But in case of a replying mail, the history of the written mails should…
SiL3NC3
  • 690
  • 6
  • 29
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

how to verify the MimeEntity of dncrypted,and the signed fomart using “”application/pkcs7-mime

When I decrypting the signed and encrypted messages ,I successfully decrypt and get a "MimeEntity", his smime-type is "signed-data". but the signature format is not "multipart/signed", and the format is "application/pkcs7-mime". I convert it to…
Roy Yu
  • 1
0
votes
1 answer

How do I sign an email message with a certificate and private key?

So I'm trying to sign an email using an X509Certificate2 that has been selected by a user. I've been trying to do this using MimeKit but the documentation for this appears to be old. This is how they tell you to do this on the github page (found…
Adam Jones
  • 2,370
  • 5
  • 23
  • 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
-1
votes
1 answer

I am trying to sign a mail but get a email with a p7s with my certificates and not a signed email

I have an issue, I do not understand why I have a s/mime certificate for my email; it doesn't sign my email body but generates an attachment with all certificates! Is this a bug or a brand-new way to export and email my local certificates to a…
Walter Verhoeven
  • 3,867
  • 27
  • 36
-1
votes
1 answer

Running the benchmarks - new to .NET

I'm attempting to run the benckmarks in https://github.com/jstedfast/MimeKit and running into version issue. I'm on a mac, using vscode and installed .NET SDK with homebrew. It gave me dotnet-sdk-5.0.401-osx-x64.pkg. When I try to run dotnet build…
-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

Which client for MimeKit.MimeMessage?

I have a C# project with netstandard2.0;netcoreapp3.1. I can create a message, MimeKit.MimeMessage class, but I don't know how to send it. System.Net.Mail.SmtpClient requires a MailMessage (System.Net.Mail). I'm…
Alex 75
  • 2,798
  • 1
  • 31
  • 48
1 2 3
20
21