Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mvnaz

Pages: [1]
1
PHP / 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);

Pages: [1]