Пример #1
0
 /**
  * @param MailingSystemEvent $event
  */
 public function update(MailingSystemEvent $event)
 {
     if ($event->getEnabled()) {
         ConfigQuery::enableSmtp();
     } else {
         ConfigQuery::disableSmtp();
     }
     ConfigQuery::setSmtpHost($event->getHost());
     ConfigQuery::setSmtpPort($event->getPort());
     ConfigQuery::setSmtpEncryption($event->getEncryption());
     ConfigQuery::setSmtpUsername($event->getUsername());
     ConfigQuery::setSmtpPassword($event->getPassword());
     ConfigQuery::setSmtpAuthMode($event->getAuthMode());
     ConfigQuery::setSmtpTimeout($event->getTimeout());
     ConfigQuery::setSmtpSourceIp($event->getSourceIp());
 }