问题
I know there is plenty of PHP mail libraries out there, but most of them are designed to send emails, is there any library that will help me fetch emails from imap/pop3 accounts, deal with attachments etc?
I'm already using imap_*
functions from PHP IMAP extension but using it is problematic, as I have to re-invent the wheel in most cases (ie. parsing the result of imap_fetchstructure
to get to attachments)
Mayby there is any ready to use lib build on top of imap_*
or similar, that will help me deal with fetching mails, without re-writing all that logic behind well known problems?
回答1:
I have missed the obvious Zend_Mail will do the trick
回答2:
Here is a PHP Pop3 Client that I use for a script on my server.
http://www.phpclasses.org/package/2-PHP-Access-to-e-mail-mailboxes-using-the-POP3-protocol.html
You could easily use that to create a graphical layout, but I have not had the necessity for it.
来源:https://stackoverflow.com/questions/5874689/php-mail-client-library