MailTarget Properties |
The MailTarget type exposes the following members.
| Name | Description | |
|---|---|---|
| AddNewLines |
Gets or sets a value indicating whether to add new lines between log entries.
| |
| Bcc |
Gets or sets BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
| |
| Body |
Gets or sets mail message body (repeated for each log message send in one mail).
| |
| Cc |
Gets or sets CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
| |
| EnableSsl |
Gets or sets a value indicating whether SSL (secure sockets layer) should be used when communicating with SMTP server.
See also SecureSocketOption | |
| Encoding |
Gets or sets encoding to be used for sending e-mail.
| |
| Footer |
Gets or sets the footer.
(Inherited from TargetWithLayoutHeaderAndFooter.) | |
| From |
Gets or sets sender's email address (e.g. joe@domain.com).
| |
| Header |
Gets or sets the header.
(Inherited from TargetWithLayoutHeaderAndFooter.) | |
| Html |
Gets or sets a value indicating whether to send message as HTML instead of plain text.
| |
| IsInitialized |
Gets a value indicating whether the target has been initialized.
(Inherited from Target.) | |
| Layout |
Gets or sets the layout used to format log messages.
(Inherited from TargetWithLayoutHeaderAndFooter.) | |
| LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from Target.) | |
| MailHeaders |
Gets the array of email headers that are transmitted with this email message
| |
| Name |
Gets or sets the name of the target.
(Inherited from Target.) | |
| PickupDirectoryLocation |
Gets or sets the folder where applications save mail messages to be processed by the local SMTP server.
| |
| Priority |
Gets or sets the priority used for sending mails.
| |
| ReplaceNewlineWithBrTagInHtml |
Gets or sets a value indicating whether NewLine characters in the body should be replaced with tags. | |
| RequireTLS |
Get or set whether the client should use the REQUIRETLS extension if it is available.
| |
| SecureSocketOption |
Provides a way of specifying the SSL and/or TLS encryption
If EnableSsl is true, then SslOnConnect will be used.
| |
| SkipCertificateValidation |
Gets or sets a value indicating whether SmtpClient should ignore invalid certificate.
| |
| SmtpAuthentication |
Gets or sets SMTP Authentication mode.
| |
| SmtpPassword |
Gets or sets the password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic").
| |
| SmtpPort |
Gets or sets the port number that SMTP Server is listening on.
| |
| SmtpServer |
Gets or sets SMTP Server to be used for sending.
| |
| SmtpUserName |
Gets or sets the username used to connect to SMTP server (used when SmtpAuthentication is set to "basic").
| |
| Subject |
Gets or sets the mail subject.
| |
| SyncRoot |
Gets the object which can be used to synchronize asynchronous operations that must rely on the .
(Inherited from Target.) | |
| Timeout |
Gets or sets a value indicating the SMTP client timeout (in milliseconds)
| |
| To |
Gets or sets recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).
|