public function __construct(WishId $wishId, UserId $userId, $email, $content) { parent::__construct($wishId, $userId, $content); $this->setEmail($email); $this->setContent($content); $transport = \Swift_SmtpTransport::newInstance('smtp.mandrillapp.com', 587)->setUsername('*****@*****.**')->setPassword('cIX_fPnttAiI59bAmhuwpw'); $this->mailer = \Swift_Mailer::newInstance($transport); }