Upgrade to 3.4.1

This commit is contained in:
Bastian Allgeier
2020-08-04 15:56:15 +02:00
parent f2f3bb96c0
commit 68078dd107
33 changed files with 328 additions and 318 deletions

View File

@@ -2,6 +2,7 @@
namespace Kirby\Email;
use Closure;
use Exception;
use Kirby\Toolkit\Properties;
use Kirby\Toolkit\V;
@@ -23,6 +24,7 @@ class Email
protected $attachments;
protected $body;
protected $bcc;
protected $beforeSend;
protected $cc;
protected $from;
protected $fromName;
@@ -60,6 +62,11 @@ class Email
return $this->bcc;
}
public function beforeSend(): ?Closure
{
return $this->beforeSend;
}
public function cc(): array
{
return $this->cc;
@@ -159,6 +166,12 @@ class Email
return $this;
}
protected function setBeforeSend(?Closure $beforeSend = null)
{
$this->beforeSend = $beforeSend;
return $this;
}
protected function setCc($cc = null)
{
$this->cc = $this->resolveEmail($cc);