Programming Languages / Environments > PHP

Set flag to appended mail

(1/1)

mvnaz:
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);

Navigation

[0] Message Index

Go to full version