gpt4 book ai didi

imap - 从电子邮件地址确定 POP/IMAP 服务器

转载 作者:行者123 更新时间:2023-12-04 23:10:22 25 4
gpt4 key购买 nike

有没有办法确定给定电子邮件地址的 POP 或 IMAP 服务器?我正在为非技术用户构建一个应用程序,我真的不想打扰他们询问他们的 IMAP/POP 服务器。 mail2web.com这样做,但我不确定如何。

最佳答案

这就是 Thunderbird 的做法

/**
18 * Try to guess the config, by:
19 * - guessing hostnames (pop3.<domain>, pop.<domain>, imap.<domain>,
20 * mail.<domain> etc.)
21 * - probing known ports (for IMAP, POP3 etc., with SSL, STARTTLS etc.)
22 * - opening a connection via the right protocol and checking the
23 * protocol-specific CAPABILITIES like that the server returns.
24 */

http://mxr.mozilla.org/comm-central/source/mailnews/base/prefs/content/accountcreation/guessConfig.js

关于imap - 从电子邮件地址确定 POP/IMAP 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2115771/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com