IP*Works! 2016 .NET Edition
IP*Works! 2016 .NET Edition
Questions / Feedback?

Response Event

Fired for each MailServer accepting email for the domain.

Syntax

[VB.NET]
Public Event OnResponse As OnResponseHandler
[C#]
public event OnResponseHandler OnResponse;

public delegate void OnResponseHandler(object sender, MxResponseEventArgs e);

class MxResponseEventArgs : EventArgs {
  int RequestId {get;}
  string Domain {get;}
  string MailServer {get;}
  int Precedence {get;}
  int TimeToLive {get;}
  int StatusCode {get;}
  string Description {get;}
  bool Authoritative {get;}
}

Remarks

A Response event is fired for each mail server handling email for the requested domain. The RequestId parameter identifies the request and equals the value of RequestId property right before the Resolve method is called. MailServer is the name of the server handling email for the requested Domain. A lower Precedence value should be preferred. The TimeToLive parameter gives the validity time in seconds before the DNSServer should be queried again.

Possible values for the StatusCode and Description parameters are:

StatusCodeDescription
0Ok
1Format error
2Server failure
3Name error
4Not implemented
5Refused

After the last Response event is fired, the component sets the MailServer and Status properties to the best MailServer and the error or success code respectively.

 
 
Copyright (c) 2020 /n software inc. - All rights reserved.
IP*Works! 2016 .NET Edition - Version 16.0 [Build 7353]