Press "Enter" to skip to content


FluentEmail is a fluent interface library to help build MailMessage objects.

It lets you use IntelliSense and method chaining to create a MailMessage object, and enforces “rules of grammar” to ensure the required values are set.

For example, after calling CreateMailMessage() or CreateHtmlMailMessage(), the only function available next (shown via IntelliSense) is the From() function. The From() function cannot be called more than once. After it’s called, the library requires you call To() at least once. And so on.

Sample code using FluentEmail

MailMessage mailMessage =
        .To("", "Qwe Test")
        .To(new MailMessage("", "Jhg Test"))
        .Body("Please review the attached image")
        .AddAttachment(@"D:\Images\Logo.png", "image/png")

Please report issues or feature requests at:

The project plan is here:

    Leave a Reply

    Your email address will not be published. Required fields are marked *