Global Class |
Namespace: MailBee
The Global type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AutodetectPortAndSslMode |
Gets or sets whether MailBee should override SSL mode and/or port to use when it detects well-known mail server hostname (like gmail.com)
or port number (like 995).
| |
DefaultCulture |
Gets or sets the default CultureInfo to be used for string comparisons and conversions.
| |
DefaultEncoding |
Gets or sets the default Encoding to be used for byte-to-string and string-to-byte conversions when
no encoding is specified.
| |
DefaultServerName |
Gets or sets the default mail server name to be used when no server name specified.
| |
DefaultTimeout |
Gets or sets the default timeout value (in milliseconds)
of all MailBee classes which allow the developer to set timeout value.
| |
DnsMaxFailureCount |
Gets or sets the maximum number of seriated failures of the DNS server required in order to consider
the DNS server down.
| |
DnsNextAttemptInterval |
Gets or sets the amount of time (in milliseconds) the failed DNS server spends in quarantine.
| |
DnsPort |
Gets or sets the port on which to communicate with DNS servers.
| |
DnsServers |
Gets the list of DNS servers to use in addition to any DNS servers in the config file.
| |
FipsMode |
Gets or sets if MailBee must disable security algorithms which are not FIPS-compliant.
| |
FixBadDates |
Gets or sets if MailBee should attempt to fix bad datetime values instead of throwing an exception.
| |
LicenseKey |
Assigns the license key.
| |
LocalSmtpMXServerName |
Gets or sets the default SMTP MX server name to be used to send mail in direct send mode
to the recipients whose e-mail address contains no domain part.
| |
MaxMultiLineDataLength |
Gets or sets the maximum length (in bytes) of the multi-line data (request to a server or response from a server)
which will be inserted into the log without truncation.
| |
Pipelining |
Gets or sets whether pipelining (joining commands in batches) must be enabled by default.
| |
PreferIPv4Hosts |
Gets or sets whether MailBee should try to connect to IPv4 endpoints before IPv6 endpoints when connecting to mail servers.
| |
PreserveMimePartOrder |
Gets or sets whether MailBee should put plain-text and HTML part before any other text parts.
| |
PrivateDataCover |
Gets or sets the string to be used instead of the actual password data in the log when
HidePasswords is true.
| |
SafeMode |
Gets or sets whether safe mode (prefer compatibility instead of performance) must be ENABLED by default.
| |
TcpBufSize |
Gets or sets the default size (in bytes) of TCP buffer.
| |
UnwrappedLineLengthLimit |
Gets or sets the minimum length of a line which needs wrapping.
| |
Version |
Gets the version of the MailBee assembly.
|
The most important property in this class is LicenseKey which unlocks MailBee.NET Objects.
Changes of the property values of this class affect all MailBee classes in the current application domain. For instance, if DnsPort is set to 42, all subsequent DNS MX lookup queries will be initiated on port 42. Or, if DefaultTimeout is set to 500, all subsequent connections will use 0.5 seconds as a timeout value (however, any connections which are already open will still use their current timeout settings).
Note |
---|
If you're Visual Basic developer, you need to use fully qualified name when accessing properties of this class. For instance, use MailBee.Global.AutodetectPortAndSslMode, not Global.AutodetectPortAndSslMode. This is because Global is a keyword in VB. |