log4net SDK Reference |

# SmtpAppender Members

SmtpAppender overview

#### Public Instance Constructors

SmtpAppender Constructor | Default constructor

#### Public Instance Properties

Authentication | The mode to use to authentication with the SMTP server
BufferSize (inherited from BufferingAppenderSkeleton) | Gets or sets the size of the cyclic buffer used to hold the logging events.
ErrorHandler (inherited from AppenderSkeleton) | Gets or sets the IErrorHandler for this appender.
Evaluator (inherited from BufferingAppenderSkeleton) | Gets or sets the ITriggeringEventEvaluator that causes the buffer to be sent immediately.
FilterHead (inherited from AppenderSkeleton) | The filter chain.
Fix (inherited from BufferingAppenderSkeleton) | Gets or sets a the fields that will be fixed in the event
From | Gets or sets the e-mail address of the sender.
Layout (inherited from AppenderSkeleton) | Gets or sets the ILayout for this appender.
LocationInfo | Obsolete. Obsolete
Lossy (inherited from BufferingAppenderSkeleton) | Gets or sets a value that indicates whether the appender is lossy.
LossyEvaluator (inherited from BufferingAppenderSkeleton) | Gets or sets the value of the ITriggeringEventEvaluator to use.
Name (inherited from AppenderSkeleton) | Gets or sets the name of this appender.
OnlyFixPartialEventData (inherited from BufferingAppenderSkeleton) | Obsolete. Gets or sets a value indicating if only part of the logging event data should be fixed.
Password | The password to use to authenticate with the SMTP server
Port | The port on which the SMTP server is listening
Priority | Gets or sets the priority of the e-mail message
SmtpHost | Gets or sets the name of the SMTP relay mail server to use to send the e-mail messages.
Subject | Gets or sets the subject line of the e-mail message.
Threshold (inherited from AppenderSkeleton) | Gets or sets the threshold Level of this appender.
To | Gets or sets a semicolon-delimited list of recipient e-mail addresses.
Username | The username to use to authenticate with the SMTP server

#### Public Instance Methods

ActivateOptions (inherited from BufferingAppenderSkeleton) | Initialize the appender based on the options set
AddFilter (inherited from AppenderSkeleton) | Adds a filter to the end of the filter chain.
ClearFilters (inherited from AppenderSkeleton) | Clears the filter list for this appender.
Close (inherited from AppenderSkeleton) | Closes the appender and release resources.
DoAppend (inherited from AppenderSkeleton) | Overloaded. Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific Append method.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
Flush (inherited from BufferingAppenderSkeleton) | Overloaded. Flush the currently buffered events
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) | Gets the Type of the current instance.
ToString (inherited from Object) | Returns a String that represents the current Object.

#### Protected Instance Properties

RequiresLayout | This appender requires a log4net.Layout to be set.

#### Protected Instance Methods

Append (inherited from AppenderSkeleton) | Overloaded. Append a bulk array of logging events.
Append (inherited from BufferingAppenderSkeleton) | Overloaded. Append a bulk array of logging events.
FilterEvent (inherited from AppenderSkeleton) | Test if the logging event should we output by this appender
Finalize (inherited from AppenderSkeleton) | Finalizes this appender by calling the implementation's Close method.
IsAsSevereAsThreshold (inherited from AppenderSkeleton) | Checks if the message level is below this appender's threshold.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.
OnClose (inherited from BufferingAppenderSkeleton) | Close this appender instance.
PreAppendCheck (inherited from AppenderSkeleton) | Called before Append as a precondition.
RenderLoggingEvent (inherited from AppenderSkeleton) | Overloaded. Renders the LoggingEvent to a string.
SendBuffer | Sends the contents of the cyclic buffer as an e-mail message.
SendEmail | Send the email message
SendFromBuffer (inherited from BufferingAppenderSkeleton) | Sends the contents of the buffer.

#### See Also

SmtpAppender Class | log4net.Appender Namespace