B
B
Bogdan Pasechnik2012-05-30 11:23:52
Zend Framework
Bogdan Pasechnik, 2012-05-30 11:23:52

Who knows the library for decoding the body of the letter?

It is required to get the content and extension of the attacked files and get the text of the letter. I use Zend to receive messages (Zend_Mail_Storage_Imap and Zend_Mail_Message ...).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexeyRU, 2012-05-30
@AlexeyRU

content is usually in base64

G
Gregory, 2012-05-30
@difiso

Of course, I'll say stupidity, but maybe it's written in the documentation ?
The body of the letter is obtained by the getContent() function , but if the letter is a compound one, then it is a little more complicated.
The application is sent in compound letters, the ContentType is written something like the following Content-Type: application/zip; name="attachment.zip" , in Content-Disposition: attachment you can find out that this is an attached file. The file itself is obtained via getContent() and pulled from base64.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question