Comments (4)
Are you using System.Net.WebResponse? I'm just thinking that having a MimeEntity.Load (WebResponse) might be a nicer API than passing in a contentType string and a stream if the assumption is that people will be using WebResponses.
Otherwise, if you are using a 3rd party http stack, then it probably makes sense that I should have an API that takes a stream and content-type parameter.
from mimekit.
hmmm, just found that link you sent me with your example usage and it does not appear that you are using System.Net.WebRequest/Response, so I'll probably need to have a contentType parameter.
from mimekit.
I dropped the WebResponse parameter and went with ContentType and Stream, which I think is closer to what you need. I hesitate to use string contentType because it's less obvious what is needed, although maybe it's not so bad.
from mimekit.
Yeah, System.Net.WebRequest/Response is the old HTTP stack. Best not to write new code/APIs around that. Load(ContentType, Stream) is great. Thanks!
from mimekit.
Related Issues (20)
- Content-Transfer-Encoding changed to Base64 after being signed HOT 1
- RFC2047 DecodeText issue HOT 3
- HTML base64 to CID conversion HOT 1
- Punycode encoding being improperly used for email local parts HOT 1
- Make more packages conditional based on TFM HOT 3
- Will the order of the `MimeMessage.Attachments` (i.e., `MimeMessage.EnumerateMimeParts`) enumeration be permanent? HOT 1
- Error using smtprelay server.com Port 25. HOT 1
- Could not load file or assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 HOT 1
- The PGP key server query builder omits leading zero(s) in 'keyId' parameter HOT 1
- Problem compiling tag 3.0.0 in x64 HOT 2
- Update BouncyCastle.Cryptography to 2.3.1 HOT 3
- PgpCore / MimeKit? HOT 2
- MimeKitLite not bumped to v4.6.0 on NuGet HOT 1
- SQLite is not available. Install the System.Data.SQLite nuget package. HOT 1
- Setting the attachment code is invalid HOT 12
- MimeKit is parsing address as `GroupAddress` instead of `MailboxAddress` HOT 2
- From returns blank when it contains special characters HOT 6
- Add an image as an in line signature HOT 3
- Mimekit 3.3+ Japanese CP encoding regression? HOT 1
- message/rfc822 attachment with blank Content-Transfer-Encoding header causes attachment to become corrupted when loaded and prepared by mimekit HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimekit.