On 6/23/06, Kent Belan <[EMAIL PROTECTED]> wrote:
Does anyone know a way to get the default email server for the users
computer?
something like: GetEmailServer() returns mail.yahoo.com
What is it you're trying to accomplish?
The short answer is that there is no such thing as a default email
server. Default SMTP, POP or IMAP? Is there only one?
Try this:
? INPUTBOX("What's your SMTP server name or IP Address?",;
"How do I send mail?",;
"smtp.example.com")
For the (small number of) clients of my vertical niche app, I talk
with their network admin and/or do a remote session into their
machines to get the info. Sometimes I ask them to send me an email and
work it out from the headers, and then dial in and do a session with
BLAT to work out the ugly details. Then the settings are stored in a
shared INI file.
If you're only trying to do outgoing mail, an alternative would be to
set up your own SMTP server and support remote access via SSL with one
of the many authentication mechanisms available. You'll need to use a
non-standard port as port 25 is almost universally blocked these days,
and it would be insecure even if it worked.
--
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.