O
O
Otrivin2020-05-18 14:31:06
PHP
Otrivin, 2020-05-18 14:31:06

Which library to choose for working with imap in PHP?

Hello!

There was a task to parse incoming letters on a certain box. What library can the community recommend for this purpose? It needs to be able to return html emails, automatically convert text to utf-8, correctly display email subject lines, work with emails by uid (well, or at least return them on request).

I tried IMAPParser , but it didn't work: for example, it can't search for html in the body of an email - if it contains both an ALTERNATE-encoded variant and HTML, the library will return the first one declared.

Tell me, please, I really want to save time and not cut the bike from scratch (so I've already spent a lot of time).

UPD: Settled on PHP IMAP - supports all of the above

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Tikhomirov, 2020-05-28
@Acuna

I use PHPMailer , it can receive mail from Google via IMAP and POP3, it also returns html, but I don’t know about sorting, because I don’t need it on the server. I'm just embarrassed to ask, do you need to sort letters on the server, or on the desktop? If the latter, then I highly recommend The Bat! mail client, I just use it to automatically sort all new and old letters into folders, set up a bunch of rules for each mailbox, depending on what I need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question