I try to use zend-mail. I can send an email, but zend-mail didn't generate the message-id automatically, so I get this Message-Id:
<[email protected]>
when I check the original message.
so I've searched on Google & Zend-mail page and GitHub, but can't find how to add the message-id.
I tried this code to set the message-id:
require('vendor/zendframework/zend-mail/src/Header/MessageId.php');
use Zend\Mail\Header\MessageId;
$messid = new MessageId();
$messid->setId();
but still no message-id.
you can use
getId()method see the method here in the source code. https://github.com/zendframework/zend-mail/blob/master/src/Header/MessageId.php#L88this will return the id