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

Unable to decrypt p7m using MimeKit

I have located my smime.p7m from my email message, I read it as stream and try to decrypt it using MimeKit, but it failed with Operation is not valid due to the current state of the object. using (MemoryStream ms = new MemoryStream(data)) { …
codenamezero
  • 2,724
  • 29
  • 64
3
votes
1 answer

get the delivery status of email with mimekit/mailkit library

I am using @jstedfast Mimekit/Mailkit library, For sending mass email from my app. I want to know how to get the delivery status of each email. This is my first try to get this and after some RnD i got that we have to set or pass…
Pooja K.
  • 97
  • 1
  • 10
3
votes
2 answers

HTML looks okay in browser but not in email

I'm having some trouble with email encoding. I am reading an HTML file from disk and sending in through Gmail. When I open the HTML in the browser it looks great. When I copy the HTML string from Visual Studio and save it as an HTML file, it looks…
mack
  • 2,715
  • 8
  • 40
  • 68
3
votes
1 answer

How to check if a MIME message is encrypted or signed using Mimekit?

I want to JUST check if a MIME message is encrypted or signed using Mimekit. I don't want to decrypt it or verify its signature, I just want to know if it is encrypted or signed. I expected to find this as functions: IsSigned() & IsEncrypted() in…
3
votes
1 answer

Write message to folder on the disk using MailKit

I'm trying to move an application that used System.Net.Mail over to MailKit/MimeKit. Using System.NetMail, you could write messages to a folder like so: _smtp = new SmtpClient() { DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory, …
John-Luke Laue
  • 3,736
  • 3
  • 32
  • 60
3
votes
2 answers

How to obtain the WYSIWYG body of an email message using MimeKit

I was using a library called EAgetmail to retrieve the body of a specified email and it was working well, however I am now using Mailkit. The problem is with EAgetmail the equivalent of message.body returns the body as the user sees it in email…
non
  • 78
  • 1
  • 6
3
votes
1 answer

Mailkit: Sending Drafts

Im trying to find a method in mailkit that executes the command "Execute append" in IMAP, in C# i would do it like: MailMessage mg = null; using (ImapClient cl = new ImapClient("imap.gmail.com")) { cl.Port = 993; cl.Ssl = true; …
BrunoMartinsPro
  • 1,646
  • 1
  • 24
  • 48
3
votes
1 answer

Quote original message in a reply using mailkit

There is any way to quote the original message in a reply? e.g.: Hi, I'm fine. Sent at 16/07/15 from: user@mail.com to: Me Hei Jefh, how are you? I know that I can 'attach' the original message in a new message, but I really want to quote the…
Jéf Bueno
  • 425
  • 1
  • 5
  • 23
3
votes
1 answer

How to save attachments?

I am using MailKit/MimeKit 1.2.7 (latest NuGet version). I have been reading the API documentation and several posts on stackoverflow. But I still wasn't able to successfully save email attachments as a file. Here is my current code: var mimePart =…
Ingmar
  • 1,525
  • 6
  • 34
  • 51
3
votes
1 answer

MailKit/MimeKit SMTP connect error

While trying to send an e-mail using MailKit and MimeKit, I received the following error: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of…
milo2011
  • 339
  • 1
  • 9
  • 25
3
votes
1 answer

Returning a MimeKit message as a file to the browser

I'm trying to return an eml file via the browser to a user. Thing is, there is no static eml file - the page builds it. I can build a sample message in MimeKit using the following method public FileResult TestServe() { var message = new…
roryok
  • 9,325
  • 17
  • 71
  • 138
2
votes
0 answers

MimeKit and saving attachments to the computer problem

I am having the same problem as it is described here: MailKit save Attachments foreach(var attachment in message.Attachments) { using(var stream = File.Create("fileName")) { if (attachment is MessagePart) { var part = (MessagePart)…
HEki
  • 43
  • 6
2
votes
1 answer

MimeKit 3.3.0 problem when using from a Service Library on IIS but not in a Windows Form App

First, a little explanation of why I have 2 issues. This issue is related to v3.3.0 of MimeKit, whereas the other issue arises when I update MimeKit to v3.4.0. As I encountered the issue regarding v3.4.0 I rolled back to v3.3.0 to get it into my…
2
votes
1 answer

How can I send an email with MimeKit in C#

Hi everyone I'm trying to send an email using the MimeKit but I'm trying to attach a .pdf file I have some problems: This is how I'm trying to send it: private bool EnviarMail(string file, string from, string to, string subject, string content,…
user19111040
2
votes
1 answer

Is it possible to modify/Append a mail without downloading the whole message by using MailKit?

Imagine a mail server that supports attachments in the range of 400-500 mb. Or Imagine a mail that is 30 mb, but has 10 attachments - if we have to download the whole message each time we wish to remove an attachment from it, that's a 300 mb…
SpiritBob
  • 2,355
  • 3
  • 24
  • 62
1 2
3
20 21