Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft emails with signatures automatically added? #141

Open
DanAshley15 opened this issue Jan 24, 2025 · 0 comments
Open

Draft emails with signatures automatically added? #141

DanAshley15 opened this issue Jan 24, 2025 · 0 comments

Comments

@DanAshley15
Copy link

Is there a way my default outlook signature can be added using MsgKit?

  public void CreateMsgWithAttachmentUsingMsgKit(MyEmail myEmail)
  {
      using (var email = new Email(null,"",true))
      {
          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 = MsgKit.Enums.MessageImportance.IMPORTANCE_HIGH;
          email.IconIndex = MessageIconIndex.UnsentMail;
          email.Attachments.Add(myEmail.AttachmentPath);
          email.Save(@"C:\Users\dashley\Downloads\Email.msg");

          // Show the E-mail
          System.Diagnostics.Process.Start(@"C:\Users\dashley\Downloads\Email.msg");
      }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant