EmailOutput Class¶
Definition¶
namespace Sharplog.Outputs
Object
Output
AsyncOutput
EmailOutput
- Implements: System.IDisposable
-
Output sending mails.
Constructors¶
| Name |
|---|
| EmailOutput() |
| EmailOutput(SmtpClient, MailAddress, MailAddress[], MailAddress[], MailAddress[], int, string, LevelContainer) |
Properties¶
| Name | Type | GET | SET |
|---|---|---|---|
| Format | string | ||
| Levels | LevelContainer | ||
| SuspendTime | int | ||
| Client | SmtpClient | ||
| From | MailAddress | ||
| To | MailAddress[] | ||
| Bcc | MailAddress[] | ||
| CC | MailAddress[] | ||
| SubjectFormat | string |
Inherited Methods¶
| Name | Modifiers | Returns |
|---|---|---|
| Write(string, Log) | public |
|
| Start() | public |
|
| WriteNonBlocking((string, Log)[]) | public |
|
| Dispose() | public |
Constructors¶
EmailOutput()¶
-
Initializes a new instance of the EmailOutput class.
EmailOutput(SmtpClient, MailAddress, MailAddress[], MailAddress[], MailAddress[], int, string, LevelContainer)¶
-
Initializes a new instance of the EmailOutput class.
Parameter¶
clientSmtpClient ·- The smtp client.
fromMailAddress ·- The email from field.
toMailAddress[] ·null- The email to field.
bccMailAddress[] ·null- The email bcc field.
ccMailAddress[] ·null- The email cc field.
formatSubjectstring ·"[$La{l}$] $C$"- The format of the subject field.
suspendTimeint ·5000- The suspend time between logs in ms.
formatstring ·null- The format.
levelsLevelContainer ·null- The level settings.
Properties¶
Client¶
- Type: SmtpClient
-
Gets or sets the smtp client.
From¶
- Type: MailAddress
-
Gets or sets the email from field.
To¶
- Type: MailAddress[]
-
Gets or sets the email to field.
Bcc¶
- Type: MailAddress[]
-
Gets or sets the email bcc field.
CC¶
- Type: MailAddress[]
-
Gets or sets the email cc field.
FormatSubject¶
- Type: string
-
Gets or sets the format of the subject field.