public function sendAdvCopyEmailMessage(User $client)
 {
     $ria = $client->getProfile()->getRia();
     $companyInformation = $ria->getRiaCompanyInformation();
     $template = $this->parameters['template']['adv_copy'];
     $context = array('client' => $client->getUsername(), 'company' => $companyInformation->getName());
     $extension = pathinfo($companyInformation->getAdvCopy(), PATHINFO_EXTENSION);
     $attachments = array('ADV Copy.' . $extension => $companyInformation->getWebAdvCopy());
     $this->sendMessage($template, $context, $this->parameters['from_email']['adv_copy'], $client->getEmail(), $attachments);
 }
 public function sendRiaUserCreateEmail(User $riaUser, $password)
 {
     $template = $this->parameters['template']['ria_user_create'];
     $context = array('username' => $riaUser->getUsername(), 'password' => $password, 'logo' => $this->router->getContext()->getHost() . '/img/logo.png');
     $this->sendMessage($template, $this->parameters['from_email']['ria_user_create'], $riaUser->getEmail(), $context);
 }