jjaffeux/postmark-inbound-php — Issue #3: Large Attachments
Author: jsjohnstone
Created: 2012-02-22 17:51:32+00:00
State: open

When playing with this library today, I've encountered some issues when working with large attachments.

In this case, 'large attachments' refers to anything over 5MB.

When the post is received at the web-hook, the PHP script will run but the library will fail to decode the JSON data.

I've made sure that the request is being received correctly by writing it out to a file after the PostmarkInbound processing has been completed.

This is written correctly, but anything that should be coming from the PostmarkInbound processing that I try and write out - i.e. $postmark->from_email - is not set.

Any idea why this would be happening? Is there a way to deal with larger attachments that doesn't knock the script over?

Even being able to identify a large attachment so we can send an email back to the sender advising we can't accept it would be awesome.

Cheers,

Jamie