kalpaitch
kalpaitch

Reputation: 5271

php extract image from piped email

This is an extension to a question which I asked some time ago.

I am now interested in trying to get images out of an email piped to a php script. Where are they stored, or would they have to be decoded from the email?

I know there are imap functions but can they be used reading from stdin. I really no nothing, any help would be appreciated.

Upvotes: 1

Views: 404

Answers (1)

Marcx
Marcx

Reputation: 6826

mmm if i remember correctly the attach data from mail are saved at the bottom of itself base64 encoded, so retrieve data and use base64_decode to get the real value... i'm not 100% sure anyway..

Upvotes: 1

Related Questions