function addAttachmentFromBinaryData($filename, $mimetype, $contents) {
        $attachment = new Attachment($filename, $mimetype, base64_encode($contents));
        $this->attachments[] = $attachment;
    }
function addAttachmentFromBinaryData($filename, $mimetype, $contents) {
        $attachment = new Attachment($filename, $mimetype, base64_encode($contents));
        $this->attachments[] = $attachment;
    }
function addAttachmentFromBinaryData ( $ filename , $ mimetype , $ contents ) { $ attachment = new Attachment ( $ filename , $ mimetype , base64_encode ( $ contents ) ) ; $ this -> attachments [ ] = $ attachment ; }
Adds an attachment to this transaction from a string that contains binary data.
@param $filename the file name to use when sending the attachment as an e-mail
@param $mimetype the mime type of the attachment
@param $contents a string containing binary data, e.g. as returned from fread().
Adds an attachment to this transaction from a string that contains binary data .