RblFilterGetRblStatusesOfMailOriginatingIPAddressAsync Method |
Namespace: MailBee.AntiSpamAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<RblStatusCollection> GetRblStatusesOfMailOriginatingIPAddressAsync(
MailMessage msg,
int receivedIndex,
string[] rblHosts
)
Public Function GetRblStatusesOfMailOriginatingIPAddressAsync (
msg As MailMessage,
receivedIndex As Integer,
rblHosts As String()
) As Task(Of RblStatusCollection)
Parameters
- msg
- Type: MailBee.MimeMailMessage
A mail message with at least one Received header which contains the IP address the message came from. - receivedIndex
- Type: SystemInt32
The zero-based index of Received header to examine. Usually, zero (denotes the most recent header). - rblHosts
- Type: SystemString
The RBLs' host names.
Return Value
Type:
TaskRblStatusCollectionA task that represents the asynchronous operation.
The value of
TResult parameter is a reference to the collection of statuses of the e-mail originating IPv4 address in the specified RBLs,
or a null reference (
Nothing in Visual Basic) if no matching IPv4 address was found in the specified Received header.
Exceptions Exception | Condition |
---|
MailBeeInvalidArgumentException | msg is a null reference (Nothing in Visual Basic), or
rblHosts is a null reference or contains at least one value which is a null reference or an empty string, or receivedIndex is negative or does not denote a valid index
in msg's TimeStamps collection. |
MailBeeException | Another error occurred (e.g. timeout from DNS server) for all RBLs in the list. |
See Also