How to handle Email messages using PHP?

Hello, how to handle emails through PHP ?

There is a task: from the service no-reply@service.com come email letters, they need to process and to parse each incoming email (preferably instantly through HTTP, well, or through CRON).

How to do it? Thank you.
March 12th 20 at 08:11
2 answers
March 12th 20 at 08:13
Socket server on the 25th port (SMTP in PHP) and when you receive - just parsim etc.
https://github.com/TheFox/smtpd
Never production-ready solution - kailey37 commented on March 12th 20 at 08:16
@kailey37, Prove it! :)
5bbe82fae5603370837602.jpeg - lucas_Rohan commented on March 12th 20 at 08:19
@lucas_Rohaneasily.
Testimony the solution of the problem in both ways. - kailey37 commented on March 12th 20 at 08:22
@kailey37, you estimony before you write here nonsense! - lucas_Rohan commented on March 12th 20 at 08:25
@lucas_Rohan, I'm sorry, but your responses the level of "anyhow" in every subject are already tired.
Writing your network service (not prototypes and turnkey solutions in production) - a few weeks at best. Processing events to the mail server by the script - day, already with the introduction. The support of these solutions has the same difference in cost. - kailey37 commented on March 12th 20 at 08:28
@kailey37, Questions:
1. What is the relationship between the code and your comment?!
Writing your network service (not prototypes and turnkey solutions in production) - a few weeks at best


2. And then the cost of the solution at all?!

You write:
Never production-ready solution

Properly justify your conclusion. - lucas_Rohan commented on March 12th 20 at 08:31
March 12th 20 at 08:15
You have to interact with the mail server.
Here's an example:
https://thecodingmachine.io/triggering-a-php-scrip...
If there is a mail server and it supports tagging - Yes, better with it.
But it is not always convenient and the only option.
For example, the socket server can be on the mail subdomain forwarding or accepting directly. - lucas_Rohan commented on March 12th 20 at 08:18

Find more questions by tags E-mailPHP