wodSmtpServer ActiveX Control - DNSHostname Property
      
 

Description

Holds hostname of DNS server.


Property type

A String value.  


Syntax

object.DNSHostname [= value]



The DNSHostname Property syntax has these parts:

Part Description
object An expression evaluating to an object of type wodSmtpServer.
value A String value.

Remarks

DNSHostname is used only for mail relaying. If you add message to be relayed using code like this, for example:

Private Sub wodSmtpServer1_MailReceived(ByVal User As WODSMTPSERVERCtl.ISmtpUser, Action As WODSMTPSERVERCtl.SmtpActions)
      PrintList "*** Mail received from " & User.HostName & "! Contents follows:"
      wodSmtpServer1.Relays.Add User.Message
End Sub

then wodSmtpServer needs to find destination server where message should be relayed - just from known email address. Typically, this means it needs to find MX record for the domain, or possibly A record if applicable. For this to work, DNS server needs to be known. Although wodSmtpServer could use DNS server registered with your TCP connections, we leave it up to you to enter this information so wodSmtpServer does not interfere with issues regarding different versions of Windows OS.

wodSmtpServer will try to fill this information from registry settings.