you can try finding the email address of a given user like that

my machine name here is but my email addy isnt

you dont know if sendmail is running on localhost, nor if the mail server they
ACTUALY use shares a primany domain with the localhost.

best just to ask, although it would be nice to see the programme make an
educated guess.

robin-david hammond
lead systems engineer

From: andu <[EMAIL PROTECTED]>
Subject: Re: Implementing mailto: Mac
Date: Mon, 25 Sep 2000 19:35:42 -0400 (EDT)

>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
and return the mail server given the domain name([EMAIL PROTECTED]).
Nslookup is here:
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
                MX preference = 10, mail exchanger =
                MX preference = 20, mail exchanger =
                MX preference = 30, mail exchanger =
                MX preference = 40, mail exchanger =
                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

XIIdigitation, n.:
        The practice of trying to determine the year a movie was made
by deciphering the Roman numerals at the end of the credits.
                -- Rich Hall, "Sniglets"

Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to