/** * Do a special trick to set the localDomain using the domain key. * * @see li3_swiftmailer\mailer\Transport::_config() */ protected function _config() { parent::_config(); if (isset($this->_config['domain'])) { $transport = $this->get_transport(); $transport->setLocalDomain($this->_config['domain']); } }