Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

mimekit

How to send HTML message via Mimekit/Mailkit

March 31, 2023 by Tarik

Using a BodyBuilder like you are doing is probably the easiest way. var bodyBuilder = new BodyBuilder(); bodyBuilder.HtmlBody = “<b>This is some html text</b>”; bodyBuilder.TextBody = “This is some plain text”; message.Body = bodyBuilder.ToMessageBody(); client.Send(message);

Categories c# Tags c++, mailkit, mimekit Leave a comment

Can I send files via email using MailKit?

February 13, 2023 by Tarik

Yes. This is explained in the documentation as well as the FAQ. From the FAQ: How do I create a message with attachments? To construct a message with attachments, the first thing you’ll need to do is create a multipart/mixed container which you’ll then want to add the message body to first. Once you’ve added … Read more

Categories c# Tags c++, email-attachments, mailkit, mimekit Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa