public function __construct(\Nette\Application\UI\Presenter $presenter) { parent::__construct(); $this->setFrom($presenter->getSetting('email'), $presenter->getSetting('name')); }