>Thanks to Dave and Sjoerd for arriving at the elegant 2-line solution on a PC:
>put word 1 to -2 of \
>\") \
>  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 

                       C:\> nslookup
                       Default Server:  youserver.yourdomain
                       Address:  X.X.X.X
                       > set type=MX
                       > microsoft.com
                       microsoft.com   MX preference = 10, mail exchanger = 
                       microsoft.com   MX preference = 20, mail exchanger = 
                       microsoft.com   MX preference = 30, mail exchanger = 
                       microsoft.com   MX preference = 40, mail exchanger = 
                       microsoft.com   MX preference = 50, mail exchanger = 
    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 

>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 ;-)

>Hugh Senior

Regards, Andu 

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