F
F
First name Last name2016-08-09 12:29:47
PHP
First name Last name, 2016-08-09 12:29:47

How to decrypt emails in PHP?

Hello.
I ran into a problem - when a php script receives letters, it puts them in the database ... Everything would be fine, but I ran into a problem that letters constantly in different encodings come here is an example:


Kpkwefkpwfekpfwe w ef fw wef Kpkwefkpwfekpfwe w ef fw wef Kpkwefkpwfekpfwe w ef fw wef Kpkwefkpwfekpfwe w ef fw wef Kpkwefkpwfekpfwe w ef fw wef
 
 
--------
Ivan Danilov
[email protected]
Â

PGRpdj48cD5BdXN0cmFsaWFuIHdyaXRlci1kaXJlY3RvciBDYXRlIFNob3J0bGFuZCBpcyBmYXNj aW5hdGVkIHdpdGggdGVlbmFnZSBnaXJscyBvbiB0aGUgcHJlY2lwaWNlIG9mIGFkdWx0aG9vZC4g VGhleSB3ZXJlIHRoZSBzdWJqZWN0IG9mIGhlciAyMDA0IGRlYnV0LMKgPGVtPlNvbWVyc2F1bHQ8 L2VtPiwgYW5kIHRoZXkncmUgYWxzbyB0aGUgZm9jdXMgb2YgaGVyIGxhdGVzdCBlZmZvcnQswqA8 ZW0+TG9yZTwvZW0+LCB3aGljaCBpc8KgPGEgaHJlZj0iaHR0cDovL3dmZi50by8xMFNRUUl0IiB0 YXJnZXQ9Il9ibGFuayI+c2NyZWVuaW5nPC9hPsKgYXQgdGhlwqA8YSBocmVmPSJodHRwOi8vd3d3 LndpZmlsbWZlc3Qub3JnLyIgdGFyZ2V0PSJfYmxhbmsiPldpc2NvbnNpbiBGaWxtIEZlc3RpdmFs PC9hPi4gQnV0IHRoaXMgdGltZSwgU2hvcnRsYW5kIGFkZHMgdGhlIGJyYWNpbmcgcmVhbGl0eSBv ZiBwb2xpdGljYWwgZXhpZ2VuY2llcyB0byBhIHNvY2lhbCBhbmQgc2V4dWFsIGNvbWluZy1vZi1h Z2Ugc3RvcnkuwqA8L3A+PHA+SW4gR2VybWFueSBhdCB0aGUgZW5kIG9mIFdvcmxkIFdhciBJSSwg YXMgUnVzc2lhbiBhbmQgQW1lcmljYW4gb2NjdXB5aW5nIGZvcmNlcyBmbG9vZCBpbnRvIHRoZSBj b3VudHJ5LCBtYW55IHBlb3BsZSByZXRyZWF0IHRvIHRoZSBtYXJnaW5zIHRvIGVzY2FwZSBkZXRl Y3Rpb24gYW5kIGNhcHR1cmUuIEEgeW91bmcgdGVlbiBuaWNrbmFtZWQgTG9yZSAoU2Fza2lhIFJv c2VuZGFobCkgYXdha2VucyB0byB0aGUgc291bmRzIG9mIGhlciBtb3RoZXIgKFVyc2luYSBMYXJk aSkgYW5kIGZhdGhlciAoSGFucy1Kb2NoZW4gV2FnbmVyKSB0YWxraW5nIGluIGFuIGFnaXRhdGVk IGh1c2guIEEgbWVtYmVyIG9mIHRoZSBTUywgTG9yZSdzIGZhdGhlciBmZWFycyBmb3IgdGhlIGZh bWlseSdzIHNhPC9wPjxzcGFuPi0gU2VlIG1vcmUgYXQ6IGh0dHA6Ly9pc3RobXVzLmNvbS9zY3Jl ZW5zL21vdmllcy9hLWdlcm1hbi10ZWVuLXF1ZXN0aW9ucy1oZXItbmF6aS11cGJyaW5naW5nLWlu LWxvcmUvI3N0aGFzaC5xSjltdUxDbS5kcHVmPC9zcGFuPjwvZGl2PjxkaXY+wqA8L2Rpdj48ZGl2 PsKgPC9kaXY+PGRpdj4tLS0tLS0tLTwvZGl2PjxkaXY+SXZhbiBEYW5pbG92PC9kaXY+PGRpdj5t ZUBJdmFuRGFuaWxvdi5lbWFpbDwvZGl2PjxkaXY+wqA8L2Rpdj4

------==--bound.10348.web22h.yandex.ru Content-Type: multipart/related; boundary="----==--bound.10349.web22h.yandex.ru" ------==--bound.10349.web22h.yandex.ru Content-Transfer-Encoding: 8bit Content-Type: text/html; charset=utf-8
Каооцуо цууац щуац уац  ацу цу цацуауц аац у цауацу 
 
 
--------
Ivan Danilov
[email protected]
 
------==--bound.10349.web22h.yandex.ru Content-Disposition: inline; filename="image1" Content-Id: Content-Location: http://img.yandex.net/i/smiles/small/smile_28.gif Content-Transfer-Encoding: base64 Content-Type: image/gif; name="image1" R0lGODlhEwARANU/AP/qtP/DFbNyDvqyKc2IEP+8A8aXOd60cKh4I/Ls2eTEjOClQv/ZdeKVE/3D LOqgBv7KR/XZnf+9CuOYBPXz5f/VZOurEPCpKdWLGP/ADvivEvexAvrCVvPOh/jVjvXw3PazGviy BP28Ffi1CfavA//00//lnJNNAsh4A9CQLtKlSbuLMNybD+OZH/7bgv7ejv3QW9+UGdugFP/yzOfB gd+gN/bMeuagJ+yvRPy+MaeUh//uwFAqEP+6AP////X16iH5BAEAAD8ALAAAAAATABEAAAbhwJ9Q +PFwBkiO5zNsCiODHANAfUEGEafQpqnMSuCwC9RxRjSMnXq9NoGyxIvDZFghTHjEymCCXZg/HV0C PoUIDAiFPgIMZEI4IgQ+Ojw6KhAqlDo+BA44Qi0ZkjykBg4GpDycDjc/FA0SLJOVBhkGmj4sEg0U PzE9BZKFBcSKBAU9LUI1Gz3Oz9DPJAtCNA8S2BIWAicnI9kSDzRCCRghAQEWJ6knFugjGAlDChMF AScCMiDbJwESEwqcHJiwIQO6gxk2TDig5QcNAhNIECsQYgKBgA1/JDiQAoXHFAfkNQkCADs------==--bound.10349.web22h.yandex.ru-- ------==--bound.10348.web22h.yandex.ru--

Google probably forgot how to use. The question is as follows - maybe someone knows ready-made solutions for processing message encoding?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question