Add author name and email arguments to mail send client
This commit is contained in:
@@ -44,7 +44,7 @@ class Client extends Base
|
|||||||
* @param string $html
|
* @param string $html
|
||||||
* @return Client
|
* @return Client
|
||||||
*/
|
*/
|
||||||
public function send($recipientEmail, $recipientName, $subject, $html)
|
public function send($recipientEmail, $recipientName, $subject, $html, $authorName = null, $authorEmail = null)
|
||||||
{
|
{
|
||||||
if (! empty($recipientEmail)) {
|
if (! empty($recipientEmail)) {
|
||||||
$this->queueManager->push(EmailJob::getInstance($this->container)->withParams(
|
$this->queueManager->push(EmailJob::getInstance($this->container)->withParams(
|
||||||
@@ -52,8 +52,8 @@ class Client extends Base
|
|||||||
$recipientName,
|
$recipientName,
|
||||||
$subject,
|
$subject,
|
||||||
$html,
|
$html,
|
||||||
$this->getAuthorName(),
|
is_null($authorName) ? $this->getAuthorName() : $authorName,
|
||||||
$this->getAuthorEmail()
|
is_null($authorEmail) ? $this->getAuthorEmail() : $authorEmail
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user