Re: How to auto detect a remote IMAP/POP3 server given only an email address ?
- From: "Richard" <root@localhost>
- Date: Fri, 28 Dec 2007 18:54:15 +0100
"mp-" <michealp@xxxxxxxxx> wrote in message
news:b4eb9c5a-427c-4b93-90a0-b0a97d335a06@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I want to be able to allow people to check their email from my PHP
online application.
Given only the users 1) email address, 2) username (if applicable)
and
3) password - how can I auto detect a remote IMAP/POP3 server so
that
I can connect and fetch mail for the user. (Ultimately, I don't
want
users to have to know what the IMAP/POP3 server name / port is ....
I
would like to auto-detect all of that).
At first I thought I could use "getmxrr" but quickly realized that
is
only good for determining the SMTP server.
If anyone has ever "add account" in Gmail Preferences, it's
essentially the exact same functionality where Gmail auto-detects
the
IMAP/POP3 server.
Any help will be greatly appreciated.
Just try to connect to the server.
POP3 and IMAP use different port numbers, so if either one does not
work you try the other.
Richard.
.
- Follow-Ups:
- References:
- Prev by Date: Re: '0' passed to function treated as 'null'
- Next by Date: newbie: date/time functions problems
- Previous by thread: How to auto detect a remote IMAP/POP3 server given only an email address ?
- Next by thread: Re: How to auto detect a remote IMAP/POP3 server given only an email address ?
- Index(es):