Given code like the following:
$mailObject = new Mailer($this->profileID);
$mailObject->addHeader(‘Subject’,…);
…
$mailObject->send();
What is the best way to get EGroupware’s ID for this mail, such that I can
pass it on to mail_ui::generateRowID()?
I’ve tried reading the headers like this:
$headers = $this->getHeaders($_folder, 0, 1, Horde_Imap_Client::SORT_DATE,
false, array());
$message_ID = $headers[‘header’][0][‘uid’];
where $_folder is the Sent folder, but that seems to be inconsistent,
sometimes working and sometimes returning the ID for an email sent 10
minutes prior.
Thanks,
Nathan