A
A
Alex Smith2015-12-30 17:49:09
PHP
Alex Smith, 2015-12-30 17:49:09

How to read messages from yandex\gmail mail in php?

Tried to read using "imap" library in php. But it was not possible to read the messages .. various kinds of errors occur:
"imap_open(): Couldn't open stream"
"Error:Can't connect to imap.YANDEX.ru,993: Network is unreachable"
In general, what are the solutions for parsing mail ? Api did not find giants, apparently everyone can easily parse imap or pop3.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2015-12-30
@inkvizitor68sl

Figure out what the errors are. Perhaps the local FW does not allow you to connect to the imap server.
And so - imap is the only correct option in this case. Google has a feed and an API, but the idea of ​​using them in a project is so-so.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question