ResolveHostName Method


Returns the IP address of the specified host name.


[Visual Basic]

strIPAddr = ObjectName.ResolveHostName(HostName)

 
Parameters:  
HostName As String The name of the host to be resolved into the IP address.  
Return value As String The IP address associated with the specified host name.  

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.SMTP")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.SMTP")
'In ASP use Response.Write instead of MsgBox

' Display the IP address of the specified host name
MsgBox objSMTP.ResolveHostName("www.afterlogic.com")


See Also:

ServerName Property


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.