From 2afc157c2452be896d1dfd1a13f92f51d58d8c49 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 13 Sep 2021 16:32:43 +0300 Subject: [PATCH] email getFromAddress --- application/Espo/Entities/Email.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/Espo/Entities/Email.php b/application/Espo/Entities/Email.php index 27621c44b2..16ac29312e 100644 --- a/application/Espo/Entities/Email.php +++ b/application/Espo/Entities/Email.php @@ -337,6 +337,11 @@ class Email extends Entity $this->set('isHtml', !$isPlain); } + public function getFromAddress(): ?string + { + return $this->get('from'); + } + public function addToAddress(string $address): void { $list = $this->getToAddressList();