Skip to content

Commit

Permalink
🐛 N°2272 EmailLaminas.php: Fix Message-ID format
Browse files Browse the repository at this point in the history
  • Loading branch information
vlk-charles authored Oct 21, 2024
1 parent 88756a4 commit 0cc09ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/Core/Email/EmailLaminas.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ public function SetMessageId($sId)
{
$this->m_aData['message_id'] = $sId;

// Note: Swift will add the angle brackets for you
// Note: The email library will add the angle brackets for you
// so let's remove the angle brackets if present, for historical reasons
$sId = str_replace(array('<', '>'), '', $sId);

$this->m_oMessage->getHeaders()->addHeaderLine('Message-ID', $sId);
$this->m_oMessage->getHeaders()->addHeader((new Laminas\Mail\Header\MessageId())->setId($sId));
}

public function SetReferences($sReferences)
Expand Down

0 comments on commit 0cc09ab

Please sign in to comment.