Answer the question
In order to leave comments, you need to log in
How to get mail using PHP?
Hello. I am writing a small corporate portal and there was a need to receive mail.ru or yandex.ru from the mail and further display letters from the mail in the corporate portal. Is it possible to implement this using PHP? Some small example of implementation, if not difficult. Thanks
Answer the question
In order to leave comments, you need to log in
<?
$conn = fsockopen("pop.mail.ru", 110,$errno, $errstr, 10);
echo fgets($conn,1024);
?>
Whatever you do, the error is -ERR POP3 is available only with SSL or TLS connection enabled
All information on the Internet is outdated. SSL is also installed, but the error remains.
https://php.net/manual/ru/book.imap.php
stackoverflow.com/questions/13752809/how-do-i-use-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question