问题
I'm trying to find a way in order to retrieve POP3/IMAP/SMTP parameters for a specific e-mail server. What I would like to do is the following: given any e-mail address, such as xxxx@server.com/it/etc, retrieve the correct POP3/IMAP settings in order to retrieve e-mails from that account and SMTP settings in order to send e-mails from that account.
Practically, what I search is a way to retrieve the server parameters needed in order to send and receive emails, that is, I search the same function that some e-mail client normally do when you create a new account.
Thanks in advance.
回答1:
The auto-configuration mechanism of Mozilla Thunderbird is described on the following page:
- https://developer.mozilla.org/de/docs/Mozilla/Thunderbird/Autoconfiguration
It uses either a_central database_ (known as ISPDB) or site-local configuration information accessible via special URLs. For example the correct IMAP settings for email addresses with the domain web.de can be found under the following URL:
- https://autoconfig.thunderbird.net/v1.1/web.de
回答2:
Thunderbird does this as well as anyone and its source is available, so just download the source or look at it on the web.
来源:https://stackoverflow.com/questions/21643831/automatic-acquisition-of-pop3-imap-smtp-parameters-for-an-email-server