Zend send mail attachments

Permalink 1 user found helpful
I have followed thishttp://bit.ly/J4Ae3c and other examples about using Zend_Mail in Concrete5 for extending mail support, but I have problem sending attachments.
Mail is sent, attachment is displayed as icon/name but size is either 0 or "unknown" if line 5 is not commented.

Code is here:http://pastebin.com/8TfcaL5u

Zend tutorial was followed here:http://bit.ly/IBSKA4 and the rest was made by kind help of IRC crew.

View Replies:
eOne replied on at Permalink Reply
line #12 should look like this:

$image = $fh->getContents( File::getByID(19)->getPath() );