Retrieve messageId of email being sent using ezcomponents ezcMailComposer
- by Ian
I'm trying to retrieve the messageId for the email being sent. I've tried explicitly setting the messageId just before sending, like this:
$mail->setHeader('messageId',ezcMailTools::generateMessageId('example.com'));
I then return the messageId after sending, like this:
return $mail->getHeader('messageId');
... but the counter portion…