Mailbox update

This commit is contained in:
Torsten Schulz
2023-06-16 13:53:35 +02:00
parent 0bd00d552f
commit 7e4ac1bd1b
2 changed files with 5 additions and 9 deletions

View File

@@ -451,9 +451,9 @@ class Renderer {
$mail->send();
}
protected function connectToImap(): bool {
protected function connectToImap($folder = ''): bool {
$this->mbox = new PhpImap\Mailbox(
'{' . $this->imapServer . ':' . $this->imapPort . '/imap/ssl}',
'{' . $this->imapServer . ':' . $this->imapPort . '/imap/ssl}' . $folder,
$this->emailUser,
$this->emailPassword,
__DIR__,
@@ -466,11 +466,6 @@ class Renderer {
3,
[]
);
/* $this->mbox = imap_open ("{" . $this->imapServer . ":" . $this->imapPort . "/imap/ssl}INBOX", $this->emailUser, $this->emailPassword);
if ($this->mbox === false) {
$errors = imap_errors();
$this->errors = is_array($errors) ? $errors : [$errors];
}*/
return ($this->mbox !== false);
}