>>You need to use nslookup
Yes, this is what I end up doing.
Here is a function that returns the name of the mail server id there is on, or
an empty string if there is not.
(tested on Windows)
<CFFUNCTION NAME="nslookup">
<CFARGUMENT NAME="domain" REQUIRED="yes" TYPE="string">
<CFEXECUTE name="c:\windows\system32\nslookup.exe"
arguments=" -type=mx #domain#"
variable="this.nslookup"
timeout="10" />
<CFSET n = findNoCase ("mail exchanger = ", this.nslookup)>
<CFIF n EQ 0>
<CFRETURN "">
<CFELSE>
<CFRETURN mid (this.nslookup, n+17, 9999)>
</CFIF>
</CFFUNCTION>
<CFOUTPUT>houseoffusion.com = #nslookup("houseoffusion.com")#<BR>
homeoffusion.com = #nslookup("homeoffusion.com")#
</CFOUTPUT>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356908
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm