A Serilog sink that writes events to SMTP email
Switch branches/tags
Clone or download
Latest commit 816c679 Oct 30, 2018



Build status

Sends log events by SMTP email.

Package - Serilog.Sinks.Email | Platforms - .NET 4.5

var log = new LoggerConfiguration()
        fromEmail: "app@example.com",
        toEmail: "support@example.com",
        mailServer: "smtp.example.com")

An overload accepting EmailConnectionInfo can be used to specify advanced options.