mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
get and set SMTP config in mail event
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user