Re: mimedecode issue - no body
| From: | Justin Patrin | Date: | Mon, 24 Apr 2006 01:38:40 +0000 |
| Subject: | Re: mimedecode issue - no body | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23815@lists.php.net to get a copy of this message | ||
On 4/23/06, dtra FYF <dtra@faceyoursfears.com> wrote:
> hi all
>
> ok really annoying issue here
>
> i had this script working where it would take an attached image and process
> it (after being piped to by sendmail)
> using pear mail, mail_mimedecode
>
[snip]
> $mailObj = $message->decode($params);
>
> $from = $mailObj->headers['from'];
>
> $params['include_bodies'] = true;
> $params['decode_bodies'] = true;
> $params['decode_headers'] = true;
[snip]
*ahem*. You're setting $params *after* you use it. Try turning your
error_reporting to E_ALL & ~E_STRICT so that you see use of
non-initialized vars.
--
Justin Patrin