Giter Site home page Giter Site logo

Comments (16)

Sicos1977 avatar Sicos1977 commented on June 12, 2024

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.

HarbinderGill avatar HarbinderGill commented on June 12, 2024

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.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

If I run the sample I see an HTML body

image

from msgkit.

HarbinderGill avatar HarbinderGill commented on June 12, 2024

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.

HarbinderGill avatar HarbinderGill commented on June 12, 2024

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):
version

source code - note that both bodytext and bodyhtml are set:
image

On rendering the msg:

image

from msgkit.

HarbinderGill avatar HarbinderGill commented on June 12, 2024

I'll do the same test on 2.1.0 (the version in which appointments don't work):

image

Exactly the same code
image

image

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.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

Uhm... let me try your code... and see what that does do

from msgkit.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

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.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

I just made this and that seems to work as expected... it's almost the same as your code.

image

from msgkit.

HarbinderGill avatar HarbinderGill commented on June 12, 2024

Is that version pulled from nuget? I'll uninstall the package and try again.

from msgkit.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

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.

image

from msgkit.

HarbinderGill avatar HarbinderGill commented on June 12, 2024

ah perfect thank you for your efforts in tracking this down. I was going to just suggest draft mode.

from msgkit.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

I'll have to check the code if I somehow did revert something back to an older version.

from msgkit.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

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.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

Adding this to the code fixes the issue with the e-mail set to draft.

image

from msgkit.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.