SmtpAppender SmtpHost Property | Apache log4net™ SDK Documentation

Gets or sets the name of the SMTP relay mail server to use to send the e-mail messages.

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

C#
VB
C++
F#
Copy

    public string SmtpHost { get; set; }

    Public Property SmtpHost As String
    	Get
    	Set

    public:
    property String^ SmtpHost {
    	String^ get ();
    	void set (String^ value);
    }

    member SmtpHost : string with get, set

#### Property Value

Type: String
The name of the e-mail relay server. If SmtpServer is not set, the name of the local SMTP server is used.
Remarks

The name of the e-mail relay server. If SmtpServer is not set, the name of the local SMTP server is used.

See Also

#### Reference

SmtpAppender Class
log4net.Appender Namespace