public function sendAttributeSupportMail() { $user = $this->userService->getUser(); $body = $this->templateEngine->render('OpenConextProfileBundle:AttributeSupport:email.html.twig', ['attributes' => $user->getAttributes()]); /** @var Message $message */ $message = $this->mailer->createMessage(); $message->setFrom($this->mailFrom->getEmailAddress())->setTo($this->mailTo->getEmailAddress())->setSubject(sprintf('Personal debug info of %s', $user->getId()))->setBody($body, 'text/html', 'utf-8'); $this->mailer->send($message); }
/** * @test * @group Value */ public function two_emails_can_differ() { $url0 = new EmailAddress('*****@*****.**'); $url1 = new EmailAddress('*****@*****.**'); $this->assertFalse($url0->equals($url1)); }