Comments (16)
I did change nothing that should break that. I'll try to look into it this evening. Do you have some example code that you did write to build the email message so that I have some test cases.
from msgkit.
Hi, we generate html via openxml and inject it into the email body. Our prototype was working fine yesterday, but today we can see that the bodyhtml is set to html, however its always displaying whatever is set in bodytext.
If you run your sample, do you see html or text? I'll check again later, its shelved at the moment so I just need some time to do it.
from msgkit.
If I run the sample I see an HTML body
from msgkit.
I'll have a look at this today, I should add, has your nuget version number gone backward, i.e. from 2.1 to 2.0.2?
from msgkit.
Firstly thank you for replying, and thank you for your time and effort in creating a really decent free component.
version 2.0.2 (again as per my last comment the version number in nuget went backwards):
source code - note that both bodytext and bodyhtml are set:
On rendering the msg:
from msgkit.
I'll do the same test on 2.1.0 (the version in which appointments don't work):
Works as expected.
I'd suggest trying the nuget v2.0.2 rather than local source code just in case there is a mismatch.
from msgkit.
Uhm... let me try your code... and see what that does do
from msgkit.
I'll have a look at this today, I should add, has your nuget version number gone backward, i.e. from 2.1 to 2.0.2?
That is a typo... it should have been 2.2.0 ... :-) I'll fix it when I find out why the code doesn't work in your case.
from msgkit.
I just made this and that seems to work as expected... it's almost the same as your code.
from msgkit.
Is that version pulled from nuget? I'll uninstall the package and try again.
from msgkit.
I figured it out... it seems to go wrong when you set draft to true ... setting it to false fixes the issue... I now have to figure out why the code does this... I had the same problem in the past and fixed it but for some reason I got that problem back again.
from msgkit.
ah perfect thank you for your efforts in tracking this down. I was going to just suggest draft mode.
from msgkit.
I'll have to check the code if I somehow did revert something back to an older version.
from msgkit.
If I remember it correctly you have to set an RTF body with the HTML encapsulated into it to fix the problem where you get text when you set the e-mail to draft. An Outlook MSG is a complex format with all kind of properties that you have to set in the correct order to make everything work.
from msgkit.
Adding this to the code fixes the issue with the e-mail set to draft.
from msgkit.
This commit fixes the issue 8b3d815
I also just released a new nuget package (2.3.0) with this fix in it. Give it 30 minutes to get indexed on nuget.
from msgkit.
Related Issues (20)
- Issue with third party previewer - fixed HOT 1
- the email body will display garbled characters if it is too long. HOT 3
- how to send msg file after make it HOT 6
- old Version of System.Runtime.Compilerservices.Unsafe.dll HOT 3
- Categories are never shown after load
- Creating a MSG - how to use AddProperty-method? HOT 17
- Resolve "Duplicate 'PackageReference' items found." HOT 3
- Adding categories to msg file HOT 1
- Compatibility with .NET 5.0 or higher HOT 2
- ConvertMsgToEml plans? HOT 1
- Attached excel file from stream is corrupted HOT 1
- Add a [MsgKit] on Stack Overflow HOT 2
- Basic support of tasks HOT 5
- MsgKit currently still depends on .NETStandard, Version=v2.0, MsgReader on .NETFramework, Version=v4.6.2 HOT 12
- Can you make a MsgKitLite based on MimeKitLite? HOT 3
- Can't send draft email via Outlook New HOT 2
- "Invalid length of the property stream. Parsing .msg file" HOT 3
- Property PidLidReminderSet has wrong type HOT 1
- Email -> Draft message functionality is not working fine. HOT 1
- Possibility to save file in Sharepoint online - Improvement HOT 2
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 msgkit.