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

my machine name here is kevin.kplab.com but my email addy isnt
[EMAIL PROTECTED], nor [EMAIL PROTECTED] its
[EMAIL PROTECTED]

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
KPL


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 \
>
>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





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"





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