Upgrade to 3.4.1
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user