V
V
Vitaly Gusev2020-08-11 13:27:48
PHP
Vitaly Gusev, 2020-08-11 13:27:48

What tools to use to parse emails with php?

Good afternoon!

Lord! Look, there is a task to organize a PHP script that could read some mailbox on the mail server. From each incoming letter, it is required to take the "Subject" and "Text of the letter", after which this information must be entered into the MySQL table. After the letter must be moved to another folder in the mailbox.
How to work with a DB from PHP - I know. But I don't know how and with what it is possible to work with mail from PHP.
Now I'm looking for information myself, but if suddenly there are gurus who know the answer, help.

Found this: https://snipp.ru/php/imap-php

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2020-08-11
@guvijur

for example, https://www.php.net/manual/en/book.imap.php

S
sandyanf, 2020-08-26
@sandyanf

There is a good PHPMailer
library. It can work both for sending and receiving, it can work through all sorts of ssl and tls.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question