SmtpAppender SendEmail Method | Apache log4net™ SDK Documentation

Send the email message

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected virtual void SendEmail(
    	string messageBody
    )

    Protected Overridable Sub SendEmail (
    	messageBody As String
    )

    protected:
    virtual void SendEmail(
    	String^ messageBody
    )

    abstract SendEmail :
            messageBody : string -> unit
    override SendEmail :
            messageBody : string -> unit

#### Parameters

messageBody
  Type: System
  String
  the body text to include in the mail

See Also

#### Reference

SmtpAppender Class
log4net.Appender Namespace