From 3b900c5dfb0e86e618255ef53dea725faa23db45 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 12 Mar 2023 02:12:09 +0000 Subject: [PATCH] get and set SMTP config in mail event --- src/Appwrite/Event/Mail.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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. *