Ejemplo n.º 1
0
 public function sendFeedbackMail(FeedbackMessage $feedbackMessage)
 {
     $data = ['feedback' => nl2br($feedbackMessage->getMessage()), 'to' => $feedbackMessage->getBorrowerEmail(), 'from' => $feedbackMessage->getReplyTo(), 'subject' => $feedbackMessage->getSubject()];
     $this->mailer->send('emails.borrower.feedback', $data);
     // TODO necessary? or just use cc field
     foreach ($feedbackMessage->getCcEmails() as $email) {
         $data['to'] = $email;
         $this->mailer->send('emails.borrower.feedback', $data);
     }
 }