diff --git a/src/BeSimple/SoapCommon/SoapKernel.php b/src/BeSimple/SoapCommon/SoapKernel.php index 2315b69..a49b2b1 100644 --- a/src/BeSimple/SoapCommon/SoapKernel.php +++ b/src/BeSimple/SoapCommon/SoapKernel.php @@ -60,7 +60,7 @@ class SoapKernel */ public function addAttachment(MimePart $attachment) { - $contentId = trim($part->getHeader('Content-ID'), '<>'); + $contentId = trim($attachment->getHeader('Content-ID'), '<>'); $this->attachments[$contentId] = $attachment; }