src/Brick/User/UserManager.php
private function changeEmailSendEmail(
		$email,
		$token,
		Nette\Application\UI\ITemplate $template,
		Nette\Mail\Message $mailMessage,
		Nette\Mail\IMailer $mailer,
		$basePath = NULL
	) {
		$template->token = $token;

		$mailMessageCurrent = clone $mailMessage;

		$mailMessageCurrent->addTo($email)
						   ->setHtmlBody($template, $basePath);

		try {
			$mailer->send($mailMessageCurrent);
			$status = TRUE;
		} catch (\Exception $e) {
			$status = FALSE;
		}

		return $status;
	}
private function changeEmailSendEmail(
		$email,
		$token,
		Nette\Application\UI\ITemplate $template,
		Nette\Mail\Message $mailMessage,
		Nette\Mail\IMailer $mailer,
		$basePath = NULL
	) {
		$template->token = $token;

		$mailMessageCurrent = clone $mailMessage;

		$mailMessageCurrent->addTo($email)
						   ->setHtmlBody($template, $basePath);

		try {
			$mailer->send($mailMessageCurrent);
			$status = TRUE;
		} catch (\Exception $e) {
			$status = FALSE;
		}

		return $status;
	}
@param $email
@param $token
@param Nette\Application\UI\ITemplate $template
@param Nette\Mail\Message $mailMessage
@param Nette\Mail\IMailer $mailer
@param null $basePath

@return bool