diff options
author | Rens <de_kwibus@live.nl> | 2018-03-06 19:43:18 +0100 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-03-06 10:43:18 -0800 |
commit | a66d080698009f75647c683fcebde65bc324bfc5 (patch) | |
tree | ba59533d8ea0faaf97d07b6cf0b5555133279ead | |
parent | 9c9e079bcdddcedcc706834eb6e80a1aa4befdc6 (diff) |
Add author name and email arguments to mail send client
-rw-r--r-- | app/Core/Mail/Client.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Core/Mail/Client.php b/app/Core/Mail/Client.php index 334f8816..c87e9fe6 100644 --- a/app/Core/Mail/Client.php +++ b/app/Core/Mail/Client.php @@ -44,7 +44,7 @@ class Client extends Base * @param string $html * @return Client */ - public function send($recipientEmail, $recipientName, $subject, $html) + public function send($recipientEmail, $recipientName, $subject, $html, $authorName = null, $authorEmail = null) { if (! empty($recipientEmail)) { $this->queueManager->push(EmailJob::getInstance($this->container)->withParams( @@ -52,8 +52,8 @@ class Client extends Base $recipientName, $subject, $html, - $this->getAuthorName(), - $this->getAuthorEmail() + is_null($authorName) ? $this->getAuthorName() : $authorName, + is_null($authorEmail) ? $this->getAuthorEmail() : $authorEmail )); } |