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
- I send e-mails using something like: https://magento.stackexchange.com/a/85375/82719
- I tried the method
setId
, but it doesn’t work. - The method
setMessageId
doesn’t exists, like in the PHPMailer - I learn that magento uses
Zend_Mail
, but could not find theMessageId
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) {}