Class SMTPDestination
Implements log destination that sends emails
Inheritance
System.Object
SMTPDestination
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.dll
Syntax
public class SMTPDestination : Destination, IApplicationComponent, IDisposable, IConfigurable, IExternallyParameterized
Constructors
SMTPDestination()
Creates a new instance of destination that sends EMails
Declaration
SMTPDestination(String, String, Int32, Boolean)
Creates a new instance of destination that sends EMails
Declaration
public SMTPDestination(string name, string host, int port, bool ssl)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
host |
|
System.Int32 |
port |
|
System.Boolean |
ssl |
|
Fields
DEFAULT_SMTP_PORT
Declaration
public const int DEFAULT_SMTP_PORT = 587
Field Value
Type |
Description |
System.Int32 |
|
Properties
Body
Declaration
[Config]
public string Body { get; set; }
Property Value
Type |
Description |
System.String |
|
CredentialsID
Declaration
[Config]
public string CredentialsID { get; set; }
Property Value
Type |
Description |
System.String |
|
CredentialsPassword
Declaration
[Config]
public string CredentialsPassword { get; set; }
Property Value
Type |
Description |
System.String |
|
DropFolder
Declaration
[Config]
public string DropFolder { get; set; }
Property Value
Type |
Description |
System.String |
|
FromAddress
Declaration
[Config]
public string FromAddress { get; set; }
Property Value
Type |
Description |
System.String |
|
FromName
Declaration
[Config]
public string FromName { get; set; }
Property Value
Type |
Description |
System.String |
|
SmtpHost
Declaration
[Config]
public string SmtpHost { get; set; }
Property Value
Type |
Description |
System.String |
|
SmtpPort
Declaration
[Config(Default = 587)]
public int SmtpPort { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
SmtpSSL
Declaration
[Config]
public bool SmtpSSL { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Subject
Declaration
[Config]
public string Subject { get; set; }
Property Value
Type |
Description |
System.String |
|
ToAddress
Declaration
[Config]
public string ToAddress { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Close()
Declaration
public override void Close()
Overrides
Destructor()
Declaration
protected override void Destructor()
Overrides
DoSend(Message)
Declaration
protected override void DoSend(Message entry)
Parameters
Type |
Name |
Description |
Message |
entry |
|
Overrides
Open()
Declaration
public override void Open()
Overrides
Implements
System.IDisposable
Extension Methods