Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

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
Bcc Gets or sets a semicolon-delimited list of recipient e-mail addresses that will be blind carbon copied.
BodyEncoding Gets or sets the body encoding to be used.
BufferSize (inherited from BufferingAppenderSkeleton) Gets or sets the size of the cyclic buffer used to hold the logging events.
Cc Gets or sets a comma- or semicolon-delimited list of recipient e-mail addresses that will be carbon copied (use semicolon on .NET 1.1 and comma for later versions).
EnableSsl Enable or disable use of SSL when sending e-mail message
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.
LocationInfoObsolete. 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
ReplyTo Gets or sets the reply-to e-mail address.
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.
SubjectEncoding Gets or sets the subject encoding to be used.
Threshold (inherited from AppenderSkeleton) Gets or sets the threshold Level of this appender.
To Gets or sets a comma- or semicolon-delimited list of recipient e-mail addresses (use semicolon on .NET 1.1 and comma for later versions).
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)
Flush (inherited from BufferingAppenderSkeleton)Overloaded. Flush the currently buffered events
GetHashCode (inherited from Object)
GetType (inherited from Object)
ToString (inherited from Object)

Protected Instance Properties

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

Protected Instance Methods

Append (inherited from BufferingAppenderSkeleton)Overloaded. This method is called by the DoAppend method.
Append (inherited from AppenderSkeleton)Overloaded. Subclasses of AppenderSkeleton should implement this method to perform actual logging.
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)
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