![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/Webkul/PrivateShop/Model/Mail/ |
<?php /** * Webkul Software * * @category Webkul * @package Webkul_PrivateShop * @author Webkul Software Private Limited * @copyright Webkul Software Private Limited (https://webkul.com) * @license https://store.webkul.com/license.html */ namespace Webkul\PrivateShop\Model\Mail; use Magento\Framework\App\TemplateTypesInterface; use Magento\Framework\Mail\MessageInterface; class TransportBuilder extends \Magento\Framework\Mail\Template\TransportBuilder { /** * @var array */ protected $templateData = []; /** * Set template data * * @param array $data * @return $this */ public function setTemplateData($data) { $this->templateData = $data; return $this; } /** * Clears the sender from the mail * * @return Laminas/Mail Provides fluent interface */ public function clearFrom() { $this->message->clearFrom('From'); return $this; } /** * Clears the Subject */ public function clearSubject() { $this->message->clearSubject(); return $this; } /** * Clears the clearMessageId */ public function clearMessageId() { $this->message->clearMessageId(); return $this; } /** * Clears Body */ public function clearBody() { $this->message->setParts([]); return $this; } /** * Clears Recipients */ public function clearRecipients() { $this->message->clearRecipients(); return $this; } /** * Clear header from the message * * @param string $headerName * @return Laminas/Mail Provides fluent inter */ public function clearHeader($headerName) { if (isset($this->_headers[$headerName])) { unset($this->_headers[$headerName]); } return $this; } }