get and set SMTP config in mail event
This commit is contained in:
parent
1d3e0c19f8
commit
3b900c5dfb
1 changed files with 23 additions and 0 deletions
|
@ -12,6 +12,7 @@ class Mail extends Event
|
|||
protected string $name = '';
|
||||
protected string $subject = '';
|
||||
protected string $body = '';
|
||||
protected array $smtp = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
@ -133,6 +134,28 @@ class Mail extends Event
|
|||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set SMTP
|
||||
*
|
||||
* @param array $smtp
|
||||
* @return self
|
||||
*/
|
||||
public function setSmtp(array $smtp): self
|
||||
{
|
||||
$this->smtp = $smtp;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get SMTP
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSmtp(): array
|
||||
{
|
||||
return $this->smtp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the event and sends it to the mails worker.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue