On Tue, 4 Mar 2008, Chris Davis wrote:
> I'm trying to modify the reply function to allow attachments to be sent.
> I've been successful in using Attachment::getList to display a list of
> available files on the reply form with checkboxes, and I can also
> use Attachment::getDetails to display all of the relevant attachment data
> after the form is posted, so I'm good there. What I can't figure out is
> where/when/how to call Mail_API::addAttachment to add the selected files to
> the message. I assume that this should go somewhere in Support::sendEmail,
> but I keep getting the white screen of death.
I have attached a patch (part of a bigger one that we use, hope we did not
leave anything away) which has been ported from 1.6.1 to 2.0.1. It adds
the possibility to attach a (single) file to mails being send.
Would be great if the Eventum developers would consider implementing such
Attachment: [text/x-diff] sendmailwithattachment.diff