Zend certified PHP/Magento developer

Sending mail with Magento 1.9: how to set MessageId?

I am able to send an e-mail with magento 1.9.

Now I need to set the MessageId of the mail. It is possible?


ROADMAP

  1. I send e-mails using something like: https://magento.stackexchange.com/a/85375/82719
  2. I tried the method setId, but it doesn’t work.
  3. The method setMessageId doesn’t exists, like in the PHPMailer
  4. I learn that magento uses Zend_Mail, but could not find the MessageId parameter..

My simplified code is:

$mail = Mage::getModel('core/email');
[...]
$mail->setBody('body text...');

$mail->setId("customId@example.com"); // <-- doesn't work
$mail->setMessageId("customId@example.com"); // <-- doesn't exists

try { $mail->send(); }
catch (Exception $e) {}