且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检查电子邮件

更新时间:2023-12-02 18:03:52

要从邮件服务器获取电子邮件,通常需要使用IMAP或POP协议.那里有可以为您执行此操作的库,或者您可以使用TcpStream创建自己的库.但是请注意,后者需要大量工作.

您还需要检查yahoo是否支持IMAP或POP访问,否则您将需要实现另一种方法.哦,除非您付费,否则我认为Hotmail不支持这种访问方式(尽管自从我停止使用hotmail以来已经有一段时间了).
To get emails from a mail server you usually need to use the IMAP or POP protocols. There are libraries out there that can do this for you, or you can use the TcpStream to create your own. Be warned, though, the latter is a lot of work.

You also want to check that yahoo supports IMAP or POP access, otherwise you''re going to need to implement another method. Oh, and I don''t think Hotmail supports that sort of access unless you pay for it (though it''s been a while since I stopped using hotmail).