mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
🐛 N°7917 SF#2272 EmailLaminas.php: Fix Message-ID format (#671)
* 🐛 N°2272 EmailLaminas.php: Fix Message-ID format
* EmailLaminas.php: Add MessageId import
as suggested by @steffunky in PR 671
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
use Combodo\iTop\Core\Authentication\Client\OAuth\OAuthClientProviderFactory;
|
||||
use Laminas\Mail\Header\ContentType;
|
||||
use Laminas\Mail\Header\MessageId;
|
||||
use Laminas\Mail\Message;
|
||||
use Laminas\Mail\Protocol\Smtp\Auth\Oauth;
|
||||
use Laminas\Mail\Transport\File;
|
||||
@@ -331,11 +332,11 @@ class EMailLaminas extends Email
|
||||
{
|
||||
$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 MessageId())->setId($sId));
|
||||
}
|
||||
|
||||
public function SetReferences($sReferences)
|
||||
|
||||
Reference in New Issue
Block a user