Re: smtp question

Mark Sapiro <[email protected]> Mon, 11 Jan 2010 10:55:07 -0800
Newsgroups gmane.comp.python.mime.devel
Message-ID <[email protected]>
On 1/11/2010 10:22 AM, Matthew Dixon Cowles wrote:
> 
>> know a way that we can get the required SMTP and POP3 (we will
>> distribute the program to others) information through code so that
>> we do not have to ask the students
> 
> Someone who knows more about Windows than I do may correct me if I'm
> mistaken, but I doubt that there's a simple and reliable way to do
> that.

You might look at what Thunderbird 3 does when you set up a new POP3
account. It asks for the email address first and then appears to just
try various names based on the email address domain using server names
like mail, pop3, smtp and the various standard ports until it finds ones
that work. Basically, it looks at the email address, guesses at the
possible POP3 and SMTP server names and ports and tries to find ones
that work. Sometimes it succeeds admirably well and sometimes it fails
at one or the other or both.

It may also have additional knowledge of popular domains.

You probably can't do better than that.

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan