GetAllEmailServers Method

Retrieve all recipient's local SMTP server addresses via DNS lookup

[Syntax]
C++: HRESULT GetAllEmailServers( BSTR EmailAddr, BSTR DNSAddr, BSTR* pVal )
Visual Basic: GetAllEmailServers( EmailAddr As String, DNSAddr As String ) As String
C#: string GetAllEmailServers( string EmailAddr, string DNSAddr )

Parameter:

EmailAddr

Email address for SMTP server lookup.

DNSAddr

A valid DNS server address. If this value is "", ANSMTP uses the default DNS address of your computer. It is recommended to specify a DNS server address on windows 95.

Return Values

If this method succeeds, the return value is all the SMTP server addresses of specified email addresses with each server address separated by semicolon; otherwise the return value is null.

See Also

ServerAddr Property
ImportMailEx Method


2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.