1
0
Fork 0
mirror of synced 2024-09-09 14:21:24 +12:00

get and set SMTP config in mail event

This commit is contained in:
Damodar Lohani 2023-03-12 02:12:09 +00:00
parent 1d3e0c19f8
commit 3b900c5dfb

View file

@ -12,6 +12,7 @@ class Mail extends Event
protected string $name = ''; protected string $name = '';
protected string $subject = ''; protected string $subject = '';
protected string $body = ''; protected string $body = '';
protected array $smtp = [];
public function __construct() public function __construct()
{ {
@ -133,6 +134,28 @@ class Mail extends Event
return $this->name; 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. * Executes the event and sends it to the mails worker.
* *