/** * @param MemberInformation $fromMember * @param MemberInformation $toMember * @param Money $amount * @param DateTime $occurredOn */ public function sendDepositReceivedEmail(MemberInformation $fromMember, MemberInformation $toMember, Money $amount, DateTime $occurredOn) { $message = new Message(); $message->setFrom('*****@*****.**')->setTo($toMember->email()->address())->setSubject('You have received a deposit')->setBody($this->template->render('email/deposit.html', ['fromMember' => $fromMember, 'toMember' => $toMember, 'amount' => $amount, 'occurredOn' => $occurredOn])); $this->mailTransport->send($message); }
/** * @param Identifier $fromMemberId * @return \Psr\Http\Message\ResponseInterface */ public function respondEnterTransferInformation(Identifier $fromMemberId) { $this->form->configure($this->configuration, $fromMemberId); $html = $this->template->render('member/transfer-funds.html', ['form' => $this->form->buildView()]); $this->response = $this->factory->buildResponse($html); }