>
>Thanks to Dave and Sjoerd for arriving at the elegant 2-line solution on a PC:
>
>put word 1 to -2 of \
>
>queryRegistry("hkey_local_machine\software\classes\mailto\shell\open\command
>\") \
>  into tBrowserPath
>launch "mailto:"&tAddress with tBrowserPath

I think originally you wanted to do this within MC. I just found out there is nslookup 
for windows (probably a port from Linux) which can be called with "shell()" and return 
the mail server given the domain name([EMAIL PROTECTED]).
Nslookup is here: http://www.trumphurst.com/dnsocx/nslookup.exe
and the dos commands are :

Using nslookup, you can find the email server of your domain, as shown in the sample 
session below.
 Start a MS-DOS command prompt (in our case we use shell()) and type the nslookup 
command:

                       C:\> nslookup
                       Default Server:  youserver.yourdomain
                       Address:  X.X.X.X
                       > set type=MX
                       > microsoft.com
                       microsoft.com   MX preference = 10, mail exchanger = 
mail1.microsoft.com
                       microsoft.com   MX preference = 20, mail exchanger = 
mail2.microsoft.com
                       microsoft.com   MX preference = 30, mail exchanger = 
mail3.microsoft.com
                       microsoft.com   MX preference = 40, mail exchanger = 
mail4.microsoft.com
                       microsoft.com   MX preference = 50, mail exchanger = 
mail5.microsoft.com
    The lowest preference indicates the best (primary) mail server. A mailer would try 
it first and if it
          cannot connect to this server, it would use other servers (by order of 
preference).

>
>Now... Does anyone have the AppleEvent equivalent for a Mac?

I also found a perl script which gets the mail server name from InternetConfig. It 
just needs to be translated into Metatalk:

use Mac::InternetConfig;
    print $InternetConfig{kICSMTPHost()};

I tested it and it works I just don't know perl ;-)

>
>/H
>Hugh Senior


Regards, Andu 
_______________________
[EMAIL PROTECTED]

Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to