I
I
Ivan Petrov2017-03-21 19:42:11
PHP
Ivan Petrov, 2017-03-21 19:42:11

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

3 answer(s)
P
Pavel, 2017-03-21
@PavelFokeev

<?
$conn = fsockopen("pop.mail.ru", 110,$errno, $errstr, 10);
echo fgets($conn,1024);
?>

And further authorization and request of letters.
More..

I
Ivan Petrov, 2017-03-22
@r0hack

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.

A
Andrey Burov, 2017-03-21
@BuriK666

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 question

Ask a Question

731 491 924 answers to any question