SMTPRelayServer Object (Dundas Mailer Control 1.0)

Dundas

SMTPRelayServer Object (Dundas Mailer Control 1.0)

This object is used by the SMTPRelayServers collection.

Remarks

To add SMTPRelayServer objects to the SMTPRelayServers collection use the collection's Add method. To remove one item call the Remove method of the collection. To clear all objects from the collection use the Clear method.

The SMTPRelayServer object consists of the following properties:

  • Name as string. The name of the SMTP relay server.

  • Port as long. The port number to be used with the server. Defaults to 25.

  • Localhost as string. The local computer's name or it's IP address. Used with the HELO command, this defaults to "local.com".

  • User as string. A valid username (if the SMTP server requires authentication). Defaults to a zero-length string.

  • Password as string. A valid password (if the SMTP server requires authentication). Defaults to a zero-length string.

SMTP relay servers are used to relay a message to a destination server.

If the SMTPRelayServers collection is empty then the email message is sent directly to the destination server, so a DNS server is required to determine where the message is to be sent. However, if the SMTPRelayServers collection is not empty then the message is sent using the specified relay server, and the DNSServers collection is ignored since the relay server is responsible for determining where the message is being sent to. If both the SMTPRelayServers and DNSServers collections are empty the DNS server to be used defaults to "A.ROOT-SERVERS.NET". If this fails "B.ROOT-SERVERS.NET" will be tried. If this too fails then "C.ROOT-SERVERS.NET" will be tried. If all of these fail then the mail operation will fail as well and return an error code.

Specifying multiple SMTP relay servers increases the reliablity and performance of your mail operation.

All mail send operations (including PostArticle) utilize the SMTPRelayServer collection.

See Also: SMTPRelayServers Collection | Add Method | Remove Method | Item Method | Count Property