Click or drag to resize

MailTarget Properties

The MailTarget type exposes the following members.

Properties
  NameDescription
Public propertyAddNewLines
Gets or sets a value indicating whether to add new lines between log entries.
Public propertyBcc
Gets or sets BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
Public propertyBody
Gets or sets mail message body (repeated for each log message send in one mail).
Public propertyCC
Gets or sets CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
Public propertyDeliveryMethod
Specifies how outgoing email messages will be handled.
Public propertyEnableSsl
Gets or sets a value indicating whether SSL (secure sockets layer) should be used when communicating with SMTP server.
Public propertyEncoding
Gets or sets encoding to be used for sending e-mail.
Public propertyFooter
Gets or sets the footer.
(Inherited from TargetWithLayoutHeaderAndFooter.)
Public propertyFrom
Gets or sets sender's email address (e.g. joe@domain.com).
Public propertyHeader
Gets or sets the header.
(Inherited from TargetWithLayoutHeaderAndFooter.)
Public propertyHtml
Gets or sets a value indicating whether to send message as HTML instead of plain text.
Protected propertyIsInitialized
Gets a value indicating whether the target has been initialized.
(Inherited from Target.)
Public propertyLayout
Gets or sets the text to be rendered.
(Inherited from TargetWithLayoutHeaderAndFooter.)
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from Target.)
Public propertyMailHeaders
Gets the array of email headers that are transmitted with this email message
Public propertyName
Gets or sets the name of the target.
(Inherited from Target.)
Public propertyPickupDirectoryLocation
Gets or sets the folder where applications save mail messages to be processed by the local SMTP server.
Public propertyPriority
Gets or sets the priority used for sending mails.
Public propertyReplaceNewlineWithBrTagInHtml
Gets or sets a value indicating whether NewLine characters in the body should be replaced with
tags.
Public propertySmtpAuthentication
Gets or sets SMTP Authentication mode.
Public propertySmtpPassword
Gets or sets the password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic").
Public propertySmtpPort
Gets or sets the port number that SMTP Server is listening on.
Public propertySmtpServer
Gets or sets SMTP Server to be used for sending.
Public propertySmtpUserName
Gets or sets the username used to connect to SMTP server (used when SmtpAuthentication is set to "basic").
Public propertySubject
Gets or sets the mail subject.
Protected propertySyncRoot
Gets the object which can be used to synchronize asynchronous operations that must rely on the .
(Inherited from Target.)
Public propertyTimeout
Gets or sets a value indicating the SMTP client timeout.
Public propertyTo
Gets or sets recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
Public propertyUseSystemNetMailSettings
Gets or sets a value indicating whether the default Settings from System.Net.MailSettings should be used.
Top
See Also