Author Topic: Set flag to appended mail  (Read 760 times)

mvnaz

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Set flag to appended mail
« on: January 07, 2018, 03:55:27 AM »
I use chilkat php extension. I append mail to inbox mailbox. How I can set flag seen=0 for this mail ?

$newEmail = new \common\components\Imap\CkEmail();

        $newEmail->put_From($InterceptedMail->from);
        $newEmail->put_Subject($InterceptedMail->subject);
        $newEmail->put_Body($InterceptedMail->body);
        if($InterceptedMail->files) {
            foreach ($InterceptedMail->files as $file) {
                $newEmail->addFileAttachment($file->getPath());
            }
        }
        $res = $imap->AppendMail("Inbox", $newEmail);