diff --git a/src/Appwrite/Event/Mail.php b/src/Appwrite/Event/Mail.php index 1b7e218d69..e8b64fd04a 100644 --- a/src/Appwrite/Event/Mail.php +++ b/src/Appwrite/Event/Mail.php @@ -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. *