Giter Site home page Giter Site logo

Comments (7)

Sicos1977 avatar Sicos1977 commented on June 12, 2024

Did you use the example on the main github page from this repository?

from msgkit.

mwolfaardt avatar mwolfaardt commented on June 12, 2024

Yes, I used the example provided

from msgkit.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

You are sure that you closed the opened message?

Because the line below opens the message en then Windows locks it :)

// Show the message
System.Diagnostics.Process.Start(@"c:\test.msg");

from msgkit.

mwolfaardt avatar mwolfaardt commented on June 12, 2024

I didn't open the msg file after i saved it

from msgkit.

Sicos1977 avatar Sicos1977 commented on June 12, 2024

I tried but can't seem to reproduce your problem. Try to dispose the email object before you open the e-mail and look if that fixes your problem.


using (var email = new Email(
	new Sender("[email protected]", "Peter Pan"),
	new Representing("[email protected]", "Tinkerbell"),
	"Hello Neverland subject"))
{

	email.Recipients.AddTo("[email protected]", "Captain Hook");
	email.Recipients.AddCc("[email protected]", "The evil ticking crocodile");
	email.Subject = "This is the subject";
	email.BodyText = "Hello Neverland text";
	email.BodyHtml = "<html><head></head><body><b>Hello Neverland html</b></body></html>";
	email.Importance = MessageImportance.IMPORTANCE_HIGH;
	email.IconIndex = MessageIconIndex.UnsentMail;
	email.Attachments.Add("Images\\peterpan.jpg");
	email.Attachments.Add("Images\\tinkerbell.jpg");
	email.Save("test.msg");
}
System.Diagnostics.Process.Start("test.msg");

from msgkit.

Timothyoverton avatar Timothyoverton commented on June 12, 2024

This is linked to the same problem I was having, hope you can replicate it by trying to delete/move 1 of the attachments after saving the msg, after the Email object is disposed...

from msgkit.

lorant-csonka avatar lorant-csonka commented on June 12, 2024

This issue is still present.

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.